3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $a; public function __construct($a) { $this->a=$a; } public function print_a() { echo $this->a."\n"; } }; class ExtendedTest extends Test { public function print_a() { echo "extended {$this->a}\n"; } }; $test=new Test("hallo"); $test->print_a(); $extendedTest=new ExtendedTest("hallo"); $extendedTest->print_a(); apc_store("test",$test); apc_store("extendedTest",$extendedTest); apc_fetch("test")->print_a(); apc_fetch("extendedTest")->print_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.40.0000.01519.09
8.3.30.0060.01218.63
8.3.20.0060.00320.22
8.3.10.0040.00423.66
8.3.00.0040.00423.51
8.2.170.0090.01222.96
8.2.160.0130.00720.35
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00421.02
8.2.120.0040.00426.35
8.2.110.0030.00620.58
8.2.100.0090.00318.03
8.2.90.0090.00018.03
8.2.80.0040.00419.23
8.2.70.0000.00817.90
8.2.60.0000.00818.04
8.2.50.0050.00318.10
8.2.40.0030.00520.63
8.2.30.0040.00420.67
8.2.20.0040.00417.62
8.2.10.0000.00818.04
8.2.00.0050.00317.93
8.1.270.0050.00323.84
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00620.68
8.1.230.0090.00322.81
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00818.64
8.1.160.0050.00322.20
8.1.150.0050.00218.88
8.1.140.0040.00719.49
8.1.130.0000.00717.77
8.1.120.0030.00317.43
8.1.110.0000.00717.39
8.1.100.0040.00417.49
8.1.90.0000.00817.44
8.1.80.0050.00217.43
8.1.70.0040.00417.47
8.1.60.0060.00317.49
8.1.50.0030.00517.43
8.1.40.0040.00417.54
8.1.30.0080.00317.59
8.1.20.0040.00417.64
8.1.10.0040.00417.56
8.1.00.0000.00717.58
8.0.300.0040.00422.07
8.0.290.0040.00416.88
8.0.280.0030.00318.45
8.0.270.0040.00417.32
8.0.260.0030.00317.28
8.0.250.0040.00416.91
8.0.240.0030.00516.94
8.0.230.0030.00517.02
8.0.220.0000.00716.97
8.0.210.0040.00316.84
8.0.200.0030.00317.01
8.0.190.0040.00416.89
8.0.180.0080.00016.89
8.0.170.0040.00316.91
8.0.160.0000.00917.00
8.0.150.0040.00416.98
8.0.140.0000.00716.96
8.0.130.0030.00313.32
8.0.120.0040.00416.84
8.0.110.0000.00716.79
8.0.100.0050.00216.86
8.0.90.0070.00016.83
8.0.80.0130.00316.91
8.0.70.0040.00416.79
8.0.60.0020.00516.76
8.0.50.0060.00316.93
8.0.30.0130.00717.24
8.0.20.0120.00817.40
8.0.10.0000.00716.98
8.0.00.0080.01116.79
7.4.330.0000.00516.76
7.4.320.0000.00616.45
7.4.300.0030.00316.59
7.4.290.0000.00716.40
7.4.280.0000.00916.61
7.4.270.0000.00716.41
7.4.260.0040.00416.58
7.4.250.0050.00216.54
7.4.240.0040.00416.48
7.4.230.0040.00416.54
7.4.220.0040.01416.50
7.4.210.0030.01016.45
7.4.200.0000.00716.55
7.4.160.0100.00616.59
7.4.150.0100.00717.40
7.4.140.0100.01117.86
7.4.130.0090.01116.53
7.4.120.0060.01516.49
7.4.110.0070.01116.38
7.4.100.0090.00816.58
7.4.90.0100.00716.48
7.4.80.0130.01319.39
7.4.70.0060.01016.58
7.4.60.0040.01216.56
7.4.50.0070.00716.64
7.4.40.0060.00916.44
7.4.30.0150.00716.56
7.4.00.0030.00915.12
7.3.330.0020.00213.30
7.3.320.0000.00613.15
7.3.310.0000.00716.36
7.3.300.0000.00716.38
7.3.290.0080.00816.31
7.3.280.0090.00816.33
7.3.270.0110.00717.40
7.3.260.0080.00816.40
7.3.250.0140.00716.42
7.3.240.0120.00516.51
7.3.230.0120.00616.43
7.3.210.0070.01116.55
7.3.200.0070.01116.30
7.3.190.0080.01516.66
7.3.180.0080.00816.38
7.3.170.0140.00716.48
7.3.160.0030.01316.48
7.2.330.0060.01116.66
7.2.320.0120.00916.76
7.2.310.0030.01716.66
7.2.300.0060.01616.38
7.2.290.0090.01216.28
7.2.80.0120.00316.87
7.2.60.0080.00816.80
7.2.00.0000.01219.64
7.1.200.0070.01015.70
7.1.100.0090.00318.14
7.1.70.0040.00717.13
7.1.60.0120.01219.52
7.1.50.0040.00716.80
7.1.00.0100.07022.37
7.0.200.0210.00814.54
7.0.60.0030.07320.03
7.0.50.0070.07717.95
7.0.40.0100.07320.32
7.0.30.0230.04720.21
7.0.20.0230.05720.16
7.0.10.0070.06720.34
7.0.00.0130.08020.25
5.6.280.0130.06021.03
5.6.210.0070.05020.70
5.6.200.0000.05718.34
5.6.190.0000.09020.49
5.6.180.0100.04720.41
5.6.170.0300.07020.47
5.6.160.0000.05320.54
5.6.150.0100.03318.19
5.6.140.0100.08318.15
5.6.130.0030.04318.16
5.6.120.0030.04021.00
5.6.110.0100.05321.00
5.6.100.0170.06721.11
5.6.90.0070.08321.02
5.6.80.0070.07720.38
5.5.350.3600.02720.40
5.5.340.0000.08717.95
5.5.330.0130.04320.26
5.5.320.0400.07020.34
5.5.310.0270.05720.34
5.5.300.0070.04018.04
5.5.290.0070.06718.09
5.5.280.0100.03320.91
5.5.270.0070.08320.89
5.5.260.0100.09020.89
5.5.250.0130.07320.59
5.5.240.0170.07020.36

preferences:
51.36 ms | 400 KiB | 5 Q