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(); $example->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.0070.01016.50
8.3.50.0290.00821.86
8.3.40.0150.00618.58
8.3.30.0070.00718.54
8.3.20.0050.00320.20
8.3.10.0030.00621.90
8.3.00.0030.00619.33
8.2.180.0160.00618.04
8.2.170.0030.01022.96
8.2.160.0100.00320.42
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00617.75
8.2.110.0100.00020.38
8.2.100.0130.00017.91
8.2.90.0080.00019.14
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00918.07
8.2.40.0040.00421.12
8.2.30.0050.00220.55
8.2.20.0050.00317.55
8.2.10.0040.00418.04
8.2.00.0050.00317.84
8.1.280.0070.00725.92
8.1.270.0060.00323.80
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00023.83
8.1.230.0120.00024.00
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.13
8.1.180.0000.00818.10
8.1.170.0040.00420.30
8.1.160.0000.00721.86
8.1.150.0040.00418.86
8.1.140.0000.00819.62
8.1.130.0060.00317.23
8.1.120.0000.00717.42
8.1.110.0040.00417.39
8.1.100.0000.00717.43
8.1.90.0000.00717.42
8.1.80.0090.00017.36
8.1.70.0080.00017.39
8.1.60.0040.00417.56
8.1.50.0000.00817.41
8.1.40.0060.00317.43
8.1.30.0090.00017.52
8.1.20.0070.00717.64
8.1.10.0040.00417.54
8.1.00.0000.00717.49
8.0.300.0020.00518.77
8.0.290.0080.00016.75
8.0.280.0000.00818.36
8.0.270.0070.00017.10
8.0.260.0070.00016.82
8.0.250.0000.00716.95
8.0.240.0050.00217.05
8.0.230.0070.00316.88
8.0.220.0030.00316.86
8.0.210.0050.00216.73
8.0.200.0030.00316.83
8.0.190.0000.00816.97
8.0.180.0040.00416.79
8.0.170.0000.00916.86
8.0.160.0070.00016.92
8.0.150.0000.00716.90
8.0.140.0040.00416.90
8.0.130.0000.00613.26
8.0.120.0080.00016.76
8.0.110.0000.00816.82
8.0.100.0030.00316.70
8.0.90.0000.00716.72
8.0.80.0150.00016.98
8.0.70.0050.00316.80
8.0.60.0070.00016.84
8.0.50.0040.00416.68
8.0.30.0100.00716.99
8.0.20.0110.00617.40
8.0.10.0050.00316.86
8.0.00.0120.00616.70
7.4.330.0020.00215.08
7.4.320.0000.00616.42
7.4.300.0030.00316.51
7.4.290.0070.00016.35
7.4.280.0000.00716.56
7.4.270.0070.00016.58
7.4.260.0000.00716.47
7.4.250.0050.00216.45
7.4.240.0030.00316.55
7.4.230.0000.00716.41
7.4.220.0060.01516.42
7.4.210.0070.00716.57
7.4.200.0070.00016.39
7.4.160.0060.00916.46
7.4.150.0070.01117.40
7.4.140.0170.00417.86
7.4.130.0030.01416.51
7.4.120.0060.01216.56
7.4.110.0090.00916.31
7.4.100.0100.00716.64
7.4.90.0060.01216.44
7.4.80.0070.01319.39
7.4.70.0080.00816.39
7.4.60.0130.01016.60
7.4.50.0000.00816.44
7.4.40.0080.00816.49
7.4.30.0190.00316.42
7.4.00.0070.00814.85
7.3.330.0050.00013.32
7.3.320.0000.00613.12
7.3.310.0000.00716.20
7.3.300.0030.00316.27
7.3.290.0060.00916.29
7.3.280.0100.00816.31
7.3.270.0100.01017.40
7.3.260.0080.00916.29
7.3.250.0090.00816.40
7.3.240.0090.01216.53
7.3.230.0080.00816.39
7.3.210.0120.00616.64
7.3.200.0130.00316.37
7.3.190.0090.00616.48
7.3.180.0070.00716.56
7.3.170.0070.01016.38
7.3.160.0100.00616.61
7.3.120.0060.00614.87
7.3.110.0040.01415.02
7.3.100.0030.00914.81
7.3.90.0030.01414.80
7.3.80.0070.00714.88
7.3.70.0060.00914.86
7.3.60.0040.00814.92
7.3.50.0130.00014.50
7.3.40.0060.01014.87
7.3.30.0060.01014.47
7.3.20.0040.00816.60
7.3.10.0040.00916.43
7.3.00.0060.00616.55
7.2.330.0030.01316.50
7.2.320.0170.00016.53
7.2.310.0100.00716.70
7.2.300.0150.00416.40
7.2.290.0090.00916.67
7.2.250.0070.01315.14
7.2.240.0100.01014.56
7.2.230.0040.01115.02
7.2.220.0040.01214.98
7.2.210.0030.00614.80
7.2.200.0100.00714.70
7.2.190.0110.00414.95
7.2.180.0000.02114.75
7.2.170.0030.01414.78
7.2.130.0110.00316.61
7.2.120.0080.00616.84
7.2.110.0100.00716.70
7.2.100.0060.00616.64
7.2.90.0060.00916.71
7.2.80.0060.00616.84
7.2.70.0090.00316.67
7.2.60.0070.00716.89
7.2.50.0090.00616.84
7.2.40.0080.00016.80
7.2.30.0030.00616.56
7.2.20.0000.01417.02
7.2.10.0000.00916.83
7.2.00.0080.00818.07
7.1.330.0080.00415.44
7.1.320.0070.00715.56
7.1.310.0060.00615.69
7.1.300.0040.00415.77
7.1.290.0040.01115.67
7.1.280.0040.00815.47
7.1.270.0030.00615.69
7.1.260.0000.01415.70
7.1.250.0040.00715.31
7.1.200.0090.00315.39
7.1.100.0070.00717.79
7.1.70.0060.00617.15
7.1.60.0070.01819.50
7.1.50.0000.01816.86
7.1.00.0000.08022.43
7.0.200.0000.00816.81
7.0.60.0070.06019.86
7.0.50.0100.06717.81
7.0.40.0130.05720.13
7.0.30.0300.06020.17
7.0.20.0070.05020.12
7.0.10.0100.08020.23
7.0.00.0100.07720.18
5.6.280.0000.03721.09
5.6.210.0070.05320.67
5.6.200.0070.06318.18
5.6.190.0030.05020.61
5.6.180.0230.06320.41
5.6.170.0270.05720.34
5.6.160.0070.06020.57
5.6.150.0030.08718.18
5.6.140.0070.03718.23
5.6.130.0030.04018.16
5.6.120.0230.07321.13
5.6.110.0130.08021.10
5.6.100.0000.04720.99
5.6.90.0170.08020.95
5.6.80.0070.04020.38
5.5.350.0000.04720.39
5.5.340.0200.06717.98
5.5.330.0000.04320.40
5.5.320.3200.04020.32
5.5.310.0200.05020.34
5.5.300.0130.07317.93
5.5.290.0130.07717.95
5.5.280.0000.04320.77
5.5.270.0030.05020.86
5.5.260.0100.07720.73
5.5.250.0070.07720.55
5.5.240.0100.07020.27
5.4.450.0630.05019.54
5.4.440.0700.05019.30
5.4.430.0730.06019.47
5.4.420.0630.05019.35
5.4.410.0570.05319.34
5.4.400.0570.05019.28
5.4.390.0670.04019.05
5.4.380.0630.05318.87
5.4.370.0630.04719.06
5.4.360.0600.06319.24
5.4.350.0600.05719.36
5.4.340.0730.04319.27
5.4.320.0570.06018.87
5.4.310.0630.04718.98
5.4.300.0630.05019.25
5.4.290.0770.05019.27
5.4.280.0730.05319.27
5.4.270.0500.06718.84
5.4.260.0770.07319.27
5.4.250.0930.06719.21
5.4.240.0800.07019.02
5.4.230.0570.07319.12
5.4.220.0430.06719.26
5.4.210.0130.06019.05
5.4.200.0200.07019.09
5.4.190.0800.06019.14
5.4.180.0570.06019.26
5.4.170.0600.06018.86
5.4.160.0630.05019.33
5.4.150.0570.05019.34
5.4.140.0130.06016.51
5.4.130.0230.05016.56
5.4.120.0230.04316.57
5.4.110.0230.05316.50
5.4.100.0200.06016.30
5.4.90.0170.05016.48
5.4.80.0230.04716.71
5.4.70.0200.06016.31
5.4.60.0230.05316.60
5.4.50.0200.05316.61
5.4.40.0200.05716.62
5.4.30.0130.05016.48
5.4.20.0230.05016.41
5.4.10.0170.05316.59
5.4.00.0300.05715.91

preferences:
55.37 ms | 401 KiB | 5 Q