3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Main { public function run($callable) { $callable(); } } class Foo extends Main { public function test(){ echo 'Foo'; } } class Bar extends Main { public function test(){ echo 'Bar'; } } $function = function(){ $this->test(); }; $foo = new Foo; $bar = new Bar; $foo->run($function); $bar->run($function);

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.0150.00018.30
8.3.50.0000.01518.06
8.3.40.0060.01019.02
8.3.30.0070.00718.66
8.3.20.0000.00720.34
8.3.10.0030.00620.70
8.3.00.0000.00723.53
8.2.180.0090.00916.63
8.2.170.0110.00422.96
8.2.160.0170.00322.12
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00020.75
8.2.120.0000.00826.35
8.2.110.0160.00021.04
8.2.100.0120.00017.80
8.2.90.0050.00319.27
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0000.00817.80
8.2.50.0000.00818.09
8.2.40.0040.00420.53
8.2.30.0040.00419.33
8.2.20.0040.00417.63
8.2.10.0050.00218.06
8.2.00.0040.00417.94
8.1.280.0040.01125.92
8.1.270.0040.01122.10
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.64
8.1.230.0000.01117.84
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.56
8.1.160.0070.00020.63
8.1.150.0050.00320.67
8.1.140.0030.00519.57
8.1.130.0030.00317.63
8.1.120.0050.00317.49
8.1.110.0000.00717.38
8.1.100.0030.00417.37
8.1.90.0000.00817.30
8.1.80.0000.00717.45
8.1.70.0030.00317.53
8.1.60.0000.00817.56
8.1.50.0040.00417.41
8.1.40.0030.00517.40
8.1.30.0030.00517.55
8.1.20.0040.00417.50
8.1.10.0000.00717.53
8.1.00.0070.00417.58
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00518.25
8.0.270.0030.00317.10
8.0.260.0030.00317.27
8.0.250.0030.00317.00
8.0.240.0000.00617.00
8.0.230.0070.00017.01
8.0.220.0090.00016.92
8.0.210.0000.00716.80
8.0.200.0000.00716.91
8.0.190.0000.00817.00
8.0.180.0000.00716.91
8.0.170.0030.00616.98
8.0.160.0040.00416.91
8.0.150.0050.00316.79
8.0.140.0000.00716.81
8.0.130.0060.00313.37
8.0.120.0030.00616.85
8.0.110.0040.00416.93
8.0.100.0040.00417.00
8.0.90.0040.00416.90
8.0.80.0030.01216.88
8.0.70.0040.00416.82
8.0.60.0040.00416.79
8.0.50.0040.00416.89
8.0.30.0100.00717.16
8.0.20.0090.01017.40
8.0.10.0000.00717.07
8.0.00.0060.01116.89
7.4.330.0000.00516.78
7.4.320.0000.00616.51
7.4.300.0030.00316.65
7.4.290.0030.00316.57
7.4.280.0040.00416.50
7.4.270.0000.00716.55
7.4.260.0000.00716.58
7.4.250.0040.00416.42
7.4.240.0050.00316.49
7.4.230.0070.00016.30
7.4.220.0150.00316.66
7.4.210.0100.00316.44
7.4.200.0000.00716.25
7.4.160.0130.00516.48
7.4.150.0110.01117.40
7.4.140.0160.00817.86
7.4.130.0050.01216.55
7.4.120.0110.00716.63
7.4.110.0080.00816.76
7.4.100.0150.00316.59
7.4.90.0070.01016.41
7.4.80.0100.00719.39
7.4.70.0110.00616.67
7.4.60.0070.01016.52
7.4.50.0040.01116.28
7.4.40.0080.00816.43
7.4.30.0180.00616.68
7.4.00.0060.00915.04
7.3.330.0000.00513.31
7.3.320.0030.00313.43
7.3.310.0030.00316.42
7.3.300.0060.00016.41
7.3.290.0090.00716.34
7.3.280.0080.00816.34
7.3.270.0070.01017.40
7.3.260.0100.00716.55
7.3.250.0090.00916.38
7.3.240.0070.00916.38
7.3.230.0060.01416.41
7.3.210.0100.01416.29
7.3.200.0090.01216.37
7.3.190.0090.01116.44
7.3.180.0040.01216.53
7.3.170.0130.00316.46
7.3.160.0110.00616.45
7.2.330.0120.00616.36
7.2.320.0150.00616.48
7.2.310.0070.01016.74
7.2.300.0120.00616.74
7.2.290.0030.01316.78
7.2.60.0100.00616.74
7.2.00.0060.00619.12
7.1.200.0060.00615.88
7.1.100.0030.00718.20
7.1.70.0040.00716.94
7.1.60.0140.01119.19
7.1.50.0110.01116.63
7.1.00.0000.08022.36
7.0.200.0330.00014.38
7.0.60.0200.08321.85
7.0.50.0130.05017.84
7.0.40.0100.08320.05
7.0.30.0200.07720.33
7.0.20.0300.08020.19
7.0.10.0070.09020.07
7.0.00.0070.04020.18
5.6.280.0030.04720.82
5.6.210.0000.04320.52
5.6.200.0100.06318.29
5.6.190.0070.07720.61
5.6.180.0330.07720.46
5.6.170.0200.08320.44
5.6.160.0070.08320.61
5.6.150.0030.08318.27
5.6.140.0170.07718.25
5.6.130.0030.06318.14
5.6.120.0170.07021.13
5.6.110.0100.07321.15
5.6.100.0030.08320.99
5.6.90.0000.04720.93
5.6.80.0030.05020.50
5.5.350.0270.07320.41
5.5.340.0030.08317.98
5.5.330.0030.09320.32
5.5.320.0400.06720.34
5.5.310.0270.07320.29
5.5.300.0070.07718.10
5.5.290.0030.08718.01
5.5.280.0100.04720.66
5.5.270.0100.08320.88
5.5.260.0200.07720.79
5.5.250.0030.05720.66
5.5.240.0070.08020.14

preferences:
56.32 ms | 401 KiB | 5 Q