3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { public function match(callable $cb) { echo $cb(); } } class Callee { public function yo() { return "If I show up, I'm allowed to do this!"; } } $ex = new Example(); $callee = new Callee(); $ex->match([$callee, 'yo']);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00716.50
8.3.50.0230.01121.30
8.3.40.0090.00618.63
8.3.30.0140.00018.78
8.3.20.0070.00020.24
8.3.10.0040.00421.91
8.3.00.0080.00019.78
8.2.180.0110.00418.41
8.2.170.0070.00722.96
8.2.160.0070.00720.29
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00917.63
8.2.110.0050.00522.25
8.2.100.0090.00318.16
8.2.90.0050.00319.25
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00717.80
8.2.50.0030.00518.07
8.2.40.0050.00320.96
8.2.30.0070.00020.75
8.2.20.0040.00417.56
8.2.10.0030.00519.71
8.2.00.0000.00718.04
8.1.280.0120.00325.92
8.1.270.0040.00423.92
8.1.260.0090.00026.35
8.1.250.0100.00728.09
8.1.240.0090.00022.58
8.1.230.0040.00817.42
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.38
8.1.190.0040.00417.10
8.1.180.0000.00718.10
8.1.170.0060.00320.35
8.1.160.0000.00721.91
8.1.150.0080.00018.87
8.1.140.0080.00019.53
8.1.130.0000.00717.73
8.1.120.0000.00717.50
8.1.110.0000.00817.44
8.1.100.0000.00717.37
8.1.90.0040.00417.34
8.1.80.0000.01117.30
8.1.70.0000.00717.32
8.1.60.0000.00717.58
8.1.50.0060.00317.48
8.1.40.0030.00617.47
8.1.30.0030.00517.62
8.1.20.0080.00417.71
8.1.10.0000.00817.54
8.1.00.0000.00817.38
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0000.00718.38
8.0.270.0070.00017.25
8.0.260.0070.00017.21
8.0.250.0040.00416.91
8.0.240.0000.00816.94
8.0.230.0050.00517.03
8.0.220.0050.00216.84
8.0.210.0040.00417.01
8.0.200.0030.00316.89
8.0.190.0040.00416.96
8.0.180.0040.00416.84
8.0.170.0040.00416.95
8.0.160.0080.00016.81
8.0.150.0050.00216.93
8.0.140.0000.00716.93
8.0.130.0070.00013.27
8.0.120.0080.00016.94
8.0.110.0040.00416.91
8.0.100.0050.00216.85
8.0.90.0040.00417.01
8.0.80.0120.00316.99
8.0.70.0040.00416.92
8.0.60.0100.00017.04
8.0.50.0040.00416.83
8.0.30.0070.01117.14
8.0.20.0090.01117.40
8.0.10.0070.00017.04
8.0.00.0100.00916.74
7.4.330.0000.00515.14
7.4.320.0030.00316.45
7.4.300.0030.00316.58
7.4.290.0000.00716.59
7.4.280.0040.00416.55
7.4.270.0030.00316.52
7.4.260.0000.00716.50
7.4.250.0030.00516.45
7.4.240.0020.00516.50
7.4.230.0030.00316.69
7.4.220.0170.00716.49
7.4.210.0070.01316.58
7.4.200.0030.00316.25
7.4.160.0160.00016.54
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0130.00516.46
7.4.120.0060.01316.39
7.4.110.0150.01016.53
7.4.100.0070.01616.53
7.4.90.0130.00316.41
7.4.80.0100.00619.39
7.4.70.0130.00316.43
7.4.60.0100.00616.74
7.4.50.0040.00016.66
7.4.40.0110.00716.43
7.4.30.0190.00316.42
7.4.00.0020.01614.85
7.3.330.0030.00313.29
7.3.320.0000.00613.35
7.3.310.0000.00816.39
7.3.300.0000.00716.14
7.3.290.0110.00716.29
7.3.280.0060.01016.29
7.3.270.0100.01017.40
7.3.260.0100.00716.29
7.3.250.0120.00616.37
7.3.240.0120.00616.32
7.3.230.0130.00316.41
7.3.210.0130.00316.60
7.3.200.0130.00616.64
7.3.190.0030.01216.33
7.3.180.0100.00716.55
7.3.170.0070.01016.53
7.3.160.0060.01016.38
7.3.120.0000.01514.87
7.3.110.0070.00414.73
7.3.100.0030.01315.00
7.3.90.0030.01014.77
7.3.80.0000.01115.00
7.3.70.0060.00614.51
7.3.60.0070.00714.76
7.3.50.0100.00314.83
7.3.40.0040.00414.46
7.3.30.0080.00414.74
7.3.20.0000.00916.59
7.3.10.0030.01416.66
7.3.00.0040.00716.55
7.2.330.0030.01316.75
7.2.320.0060.01516.70
7.2.310.0040.01116.75
7.2.300.0040.01216.79
7.2.290.0150.00416.61
7.2.250.0030.01615.01
7.2.240.0030.01215.19
7.2.230.0040.00815.10
7.2.220.0040.01215.27
7.2.210.0030.00614.54
7.2.200.0060.00615.13
7.2.190.0040.00915.05
7.2.180.0060.01015.11
7.2.170.0040.00714.92
7.2.160.0000.01315.11
7.2.150.0110.00717.07
7.2.140.0100.00716.85
7.2.130.0030.01316.81
7.2.120.0130.00016.96
7.2.110.0070.00716.79
7.2.100.0030.00716.95
7.2.90.0030.01017.01
7.2.80.0030.01017.13
7.2.70.0000.01016.96
7.2.60.0000.01416.73
7.2.50.0030.00717.07
7.2.40.0030.00916.82
7.2.30.0030.00516.67
7.2.20.0040.00716.84
7.2.10.0070.00716.54
7.2.00.0020.01018.21
7.1.330.0060.00215.82
7.1.320.0120.00315.88
7.1.310.0070.00315.96
7.1.300.0030.01015.71
7.1.290.0090.00015.64
7.1.280.0030.01015.75
7.1.270.0080.00815.43
7.1.260.0060.00615.59
7.1.250.0090.00315.71
7.1.240.0030.00715.59
7.1.230.0070.00715.75
7.1.220.0060.00315.47
7.1.210.0070.00315.79
7.1.200.0050.00515.45
7.1.190.0060.00615.62
7.1.180.0040.00415.76
7.1.170.0030.00715.58
7.1.160.0000.01415.56
7.1.150.0000.00915.45
7.1.140.0060.01015.36
7.1.130.0070.00715.69
7.1.120.0000.01215.63
7.1.110.0000.01115.56
7.1.100.0050.01016.83
7.1.90.0040.01515.30
7.1.80.0090.00315.61
7.1.70.0060.00816.34
7.1.60.0040.00617.57
7.1.50.0070.00816.20
7.1.40.0000.01515.62
7.1.30.0000.00915.52
7.1.20.0030.00715.62
7.1.10.0060.00615.72
7.1.00.0050.04219.15
7.0.330.0070.00315.27
7.0.320.0060.00615.28
7.0.310.0070.00715.02
7.0.300.0030.01015.27
7.0.290.0030.00915.30
7.0.280.0060.00315.22
7.0.270.0040.00415.31
7.0.260.0060.00615.38
7.0.250.0040.00415.50
7.0.240.0070.00015.34
7.0.230.0050.00215.08
7.0.220.0080.00315.43
7.0.210.0030.00715.32
7.0.200.0070.00416.11
7.0.190.0040.00415.32
7.0.180.0150.00015.38
7.0.170.0070.00715.05
7.0.160.0060.00615.25
7.0.150.0060.00315.21
7.0.140.0030.01015.24
7.0.130.0060.00615.44
7.0.120.0040.01115.27
7.0.110.0070.00415.15
7.0.100.0030.01015.32
7.0.90.0090.00915.42
7.0.80.0150.00315.44
7.0.70.0060.00615.57
7.0.60.0100.04217.64
7.0.50.0020.02716.55
7.0.40.0060.04316.71
7.0.30.0150.02216.69
7.0.20.0110.03816.58
7.0.10.0040.04216.90
7.0.00.0090.02216.87
5.6.400.0100.00614.18
5.6.390.0000.01114.18
5.6.380.0030.00714.43
5.6.370.0030.01014.23
5.6.360.0000.01014.34
5.6.350.0000.01514.39
5.6.340.0000.01214.53
5.6.330.0030.01013.93
5.6.320.0030.00614.21
5.6.310.0000.01414.22
5.6.300.0070.00314.20
5.6.290.0090.00314.22
5.6.280.0050.02017.62
5.6.270.0030.00614.33
5.6.260.0040.01114.13
5.6.250.0000.01114.30
5.6.240.0040.01114.32
5.6.230.0040.01414.51
5.6.220.0070.00314.20
5.6.210.0080.04017.43
5.6.200.0080.02216.17
5.6.190.0070.02217.35
5.6.180.0200.03317.25
5.6.170.0160.03717.48
5.6.160.0100.04217.28
5.6.150.0030.02916.13
5.6.140.0030.04716.31
5.6.130.0090.04016.15
5.6.120.0070.02417.77
5.6.110.0130.04117.72
5.6.100.0050.03817.66
5.6.90.0080.03417.64
5.6.80.0120.03517.37
5.6.70.0080.00814.17
5.6.60.0000.00914.27
5.6.50.0070.00714.07
5.6.40.0030.00614.43
5.6.30.0000.00814.14
5.6.20.0030.00914.47
5.6.10.0030.01014.42
5.6.00.0040.00714.29
5.5.380.0080.00414.41
5.5.370.0030.01314.46
5.5.360.0060.00314.29
5.5.350.0040.05117.24
5.5.340.0030.04816.05
5.5.330.0070.02217.36
5.5.320.1960.02317.28
5.5.310.0100.02517.35
5.5.300.0070.02016.02
5.5.290.0030.04315.93
5.5.280.0050.02717.43
5.5.270.0070.04317.69
5.5.260.0030.02317.41
5.5.250.0100.03217.27
5.5.240.0080.04117.16
5.5.230.0030.01013.82
5.5.220.0130.00014.29
5.5.210.0000.01214.12
5.5.200.0070.00714.00
5.5.190.0030.00714.10
5.5.180.0060.00314.24
5.5.170.0000.01414.37
5.5.160.0040.00414.26
5.5.150.0000.01414.10
5.5.140.0000.01214.07
5.5.130.0030.00914.21
5.5.120.0030.00713.94
5.5.110.0070.00714.25
5.5.100.0050.00214.13
5.5.90.0120.00014.20
5.5.80.0070.01014.23
5.5.70.0110.00414.22
5.5.60.0030.01014.01
5.5.50.0070.00314.02
5.5.40.0030.01314.45
5.5.30.0070.00614.27
5.5.20.0090.00614.33
5.5.10.0050.00513.91
5.5.00.0100.00314.18
5.4.450.0370.02515.17
5.4.440.0410.03515.39
5.4.430.0370.02215.25
5.4.420.0300.03114.98
5.4.410.0280.03715.03
5.4.400.0310.03015.13
5.4.390.0300.03215.19
5.4.380.0300.02815.17
5.4.370.0320.02915.24
5.4.360.0280.03015.11
5.4.350.0330.02815.04
5.4.340.0360.02414.97
5.4.330.0040.00710.75
5.4.320.0380.02815.04
5.4.310.0320.03715.07
5.4.300.0380.02715.15
5.4.290.0400.02815.05
5.4.280.0420.02814.96
5.4.270.0320.02515.01
5.4.260.0330.03715.19
5.4.250.0300.03014.94
5.4.240.0400.02114.93
5.4.230.0300.02815.12
5.4.220.0280.03215.14
5.4.210.0350.02515.11
5.4.200.0250.03314.98
5.4.190.0370.02314.92
5.4.180.0300.02814.95
5.4.170.0330.02814.91
5.4.160.0300.02915.13
5.4.150.0340.03215.02
5.4.140.0320.02513.64
5.4.130.0270.02913.83
5.4.120.0340.02813.82
5.4.110.0270.03213.67
5.4.100.0330.02513.80
5.4.90.0230.03213.75
5.4.80.0350.03313.72
5.4.70.0350.02313.88
5.4.60.0280.03013.81
5.4.50.0270.02713.77
5.4.40.0300.02713.77
5.4.30.0250.03213.85
5.4.20.0280.02713.86
5.4.10.0300.02813.76
5.4.00.0330.02813.38

preferences:
117.6 ms | 401 KiB | 5 Q