3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Increment { function __invoke($x) { ++$x->num; } } $c = new Increment(); $a = new \stdClass(); $a->num = 5; call_user_func_array([$c], [$a]); var_dump($a);

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.70.0140.00318.43
8.3.60.0110.01116.63
8.3.50.0080.01222.05
8.3.40.0170.00318.97
8.3.30.0090.00618.84
8.3.20.0080.00019.09
8.3.10.0060.00323.40
8.3.00.0030.00522.40
8.2.180.0120.00316.75
8.2.170.0090.00622.96
8.2.160.0100.00321.02
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0030.00620.89
8.2.100.0080.00317.97
8.2.90.0000.00819.03
8.2.80.0040.00417.97
8.2.70.0100.00017.50
8.2.60.0000.00918.05
8.2.50.0000.00818.10
8.2.40.0120.00020.50
8.2.30.0080.00019.25
8.2.20.0020.00517.81
8.2.10.0050.00217.98
8.2.00.0000.00917.96
8.1.280.0090.00625.92
8.1.270.0030.00523.85
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00321.37
8.1.230.0000.01117.46
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0090.00017.21
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0000.00818.51
8.1.160.0040.00422.15
8.1.150.0000.00818.80
8.1.140.0040.00419.57
8.1.130.0040.00417.70
8.1.120.0040.00417.48
8.1.110.0000.00717.49
8.1.100.0050.00217.42
8.1.90.0050.00317.48
8.1.80.0040.00417.48
8.1.70.0000.00717.36
8.1.60.0050.00317.50
8.1.50.0060.00317.52
8.1.40.0040.00417.52
8.1.30.0060.00317.54
8.1.20.0040.00417.63
8.1.10.0030.00517.53
8.1.00.0030.00517.38
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.41
8.0.270.0000.00817.16
8.0.260.0000.00717.32
8.0.250.0000.00717.01
8.0.240.0040.00417.02
8.0.230.0030.00317.05
8.0.220.0000.00716.94
8.0.210.0070.00016.95
8.0.200.0040.00417.02
8.0.190.0040.00416.95
8.0.180.0040.00416.89
8.0.170.0000.00816.98
8.0.160.0040.00417.02
8.0.150.0020.00516.81
8.0.140.0000.00816.82
8.0.130.0030.00313.38
8.0.120.0080.00016.93
8.0.110.0050.00216.91
8.0.100.0070.00016.98
8.0.90.0000.00716.96
8.0.80.0090.01216.88
8.0.70.0000.00716.95
8.0.60.0020.00516.96
8.0.50.0000.00816.89
8.0.30.0060.00917.15
8.0.20.0120.00817.40
8.0.10.0000.00817.11
8.0.00.0150.00316.79
7.4.330.0050.00015.08
7.4.320.0020.00516.62
7.4.300.0040.00416.57
7.4.290.0040.00416.57
7.4.280.0090.00316.45
7.4.270.0000.00716.50
7.4.260.0070.00016.45
7.4.250.0000.00716.59
7.4.240.0000.00716.45
7.4.230.0040.00216.48
7.4.220.0180.00716.60
7.4.210.0050.01016.51
7.4.200.0000.00716.40
7.4.160.0090.00716.64
7.4.150.0150.00417.40
7.4.140.0060.01617.86
7.4.130.0080.01016.54
7.4.120.0090.01116.43
7.4.110.0070.01016.43
7.4.100.0030.01216.62
7.4.90.0140.00316.59
7.4.80.0130.00719.39
7.4.70.0090.00616.38
7.4.60.0090.00916.63
7.4.50.0040.01116.48
7.4.40.0070.01016.45
7.4.30.0030.01916.40
7.4.00.0070.01115.18
7.3.330.0030.00313.36
7.3.320.0000.00713.33
7.3.310.0040.00416.45
7.3.300.0000.00616.38
7.3.290.0030.00316.23
7.3.280.0100.00916.34
7.3.270.0180.00017.40
7.3.260.0080.00916.40
7.3.250.0080.00916.38
7.3.240.0120.00616.44
7.3.230.0150.00316.39
7.3.210.0190.00316.38
7.3.200.0130.00716.22
7.3.190.0120.00816.36
7.3.180.0170.00416.27
7.3.170.0070.01016.40
7.3.160.0100.00716.43
7.3.10.0070.00716.66
7.3.00.0070.00716.83
7.2.330.0120.00616.24
7.2.320.0030.01316.45
7.2.310.0090.00616.57
7.2.300.0030.01416.68
7.2.290.0100.01016.69
7.2.130.0060.00916.93
7.2.120.0070.00716.90
7.2.110.0100.00016.94
7.2.100.0060.01216.94
7.2.90.0060.00916.60
7.2.80.0030.00616.81
7.2.70.0100.00616.70
7.2.60.0200.00016.88
7.2.50.0030.00617.00
7.2.40.0030.01216.91
7.2.30.0120.00017.09
7.2.20.0070.00716.86
7.2.10.0040.01116.63
7.2.00.0090.00917.98
7.1.250.0120.00015.99
7.1.200.0050.00915.10
7.1.70.0000.01517.02
7.1.60.0110.00615.18
7.1.00.0030.07722.28
7.0.200.0030.01316.73
7.0.100.0300.07019.96
7.0.90.0370.06019.95
7.0.80.1030.05719.91
7.0.70.0230.05319.92
7.0.60.0270.05020.06
7.0.50.0330.05020.28
7.0.40.0270.05320.32
7.0.30.0330.06020.35
7.0.20.0370.06320.43
7.0.10.0200.06320.24
7.0.00.0300.06020.35
5.6.250.0200.06020.69
5.6.240.0030.07720.61
5.6.230.0100.10020.66
5.6.220.0170.04720.52
5.6.210.0070.06020.58
5.6.200.0070.06320.98
5.6.190.0130.05021.15
5.6.180.0170.06021.18
5.6.170.0230.04721.08
5.6.160.0130.05721.03
5.6.150.0100.07721.09
5.6.140.0070.06321.05
5.6.130.0170.06021.07
5.6.120.0200.05321.08
5.6.110.0070.06321.06
5.6.100.0100.05321.01
5.6.90.0100.05721.12
5.6.80.0070.05720.43
5.6.70.0070.05720.61
5.6.60.0030.05720.43
5.6.50.0130.05020.49
5.6.40.0070.05720.38
5.6.30.0130.05020.46
5.6.20.0030.06020.51
5.6.10.0170.04720.37
5.6.00.0230.04020.41

preferences:
129.15 ms | 401 KiB | 5 Q