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); $test_s=apc_fetch("test"); $test_s->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.60.0100.00716.73
8.3.50.0070.00716.27
8.3.40.0060.00918.77
8.3.30.0120.00618.88
8.3.20.0060.00320.16
8.3.10.0040.00423.73
8.3.00.0070.00723.54
8.2.180.0130.01016.50
8.2.170.0120.00922.96
8.2.160.0070.00720.36
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00721.05
8.2.120.0020.00526.35
8.2.110.0090.00022.07
8.2.100.0050.00817.78
8.2.90.0000.00917.84
8.2.80.0080.00019.40
8.2.70.0000.00817.80
8.2.60.0000.00717.91
8.2.50.0060.00318.10
8.2.40.0030.00620.61
8.2.30.0030.00420.62
8.2.20.0090.00017.85
8.2.10.0000.00818.10
8.2.00.0000.00818.11
8.1.280.0150.00425.92
8.1.270.0090.00023.96
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0040.00423.84
8.1.230.0070.00420.97
8.1.220.0000.00917.77
8.1.210.0060.00318.77
8.1.200.0080.00017.48
8.1.190.0070.00317.13
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0040.00422.04
8.1.150.0040.00418.93
8.1.140.0070.00419.59
8.1.130.0040.00417.71
8.1.120.0040.00417.48
8.1.110.0040.00417.48
8.1.100.0000.00717.45
8.1.90.0040.00417.36
8.1.80.0080.00017.48
8.1.70.0000.00717.43
8.1.60.0000.00717.55
8.1.50.0040.00417.45
8.1.40.0030.00617.50
8.1.30.0060.00617.68
8.1.20.0000.00717.65
8.1.10.0000.00817.54
8.1.00.0070.00017.52
8.0.300.0000.00821.86
8.0.290.0040.00416.75
8.0.280.0030.00318.40
8.0.270.0030.00317.25
8.0.260.0030.00317.30
8.0.250.0030.00316.98
8.0.240.0000.00616.91
8.0.230.0040.00417.05
8.0.220.0030.00316.98
8.0.210.0070.00016.85
8.0.200.0000.00617.02
8.0.190.0030.00517.03
8.0.180.0020.00516.97
8.0.170.0000.00716.98
8.0.160.0070.00016.98
8.0.150.0000.00716.84
8.0.140.0080.00016.88
8.0.130.0050.00013.33
8.0.120.0000.00816.80
8.0.110.0000.00716.78
8.0.100.0000.00716.74
8.0.90.0070.00016.95
8.0.80.0070.00716.92
8.0.70.0050.00316.91
8.0.60.0000.00716.84
8.0.50.0000.00816.79
8.0.30.0090.00917.10
8.0.20.0060.01317.40
8.0.10.0070.00016.88
8.0.00.0080.01316.77
7.4.330.0000.00616.72
7.4.320.0030.00316.46
7.4.300.0000.00616.55
7.4.290.0040.00416.58
7.4.280.0060.00316.56
7.4.270.0000.00716.43
7.4.260.0030.00316.62
7.4.250.0000.00716.45
7.4.240.0080.00016.59
7.4.230.0040.00416.70
7.4.220.0070.01016.63
7.4.210.0000.01316.54
7.4.200.0000.00716.48
7.4.160.0060.01016.62
7.4.150.0160.00617.40
7.4.140.0080.01117.86
7.4.130.0120.00816.47
7.4.120.0110.00616.63
7.4.110.0040.01216.39
7.4.100.0100.00716.69
7.4.90.0100.00616.50
7.4.80.0120.00919.39
7.4.70.0060.00916.29
7.4.60.0150.00316.63
7.4.50.0110.00416.54
7.4.40.0060.00916.65
7.4.30.0070.01016.32
7.4.10.0060.00615.14
7.4.00.0060.01014.95
7.3.330.0000.00513.26
7.3.320.0000.00713.17
7.3.310.0070.00016.41
7.3.300.0030.00316.20
7.3.290.0050.01216.36
7.3.280.0080.01016.34
7.3.270.0130.00617.40
7.3.260.0080.00916.27
7.3.250.0060.01316.44
7.3.240.0120.00816.35
7.3.230.0030.01316.48
7.3.210.0090.00916.48
7.3.200.0060.01516.39
7.3.190.0050.01616.45
7.3.180.0000.01516.38
7.3.170.0060.00916.36
7.3.160.0160.00616.45
7.3.130.0040.01515.06
7.3.120.0110.00714.66
7.3.110.0140.00314.83
7.3.100.0110.00414.54
7.3.90.0110.00315.03
7.3.80.0070.00714.84
7.3.70.0140.00314.93
7.3.60.0070.00414.83
7.3.50.0080.00014.88
7.3.40.0000.01214.88
7.3.30.0000.01214.82
7.3.20.0070.00716.82
7.3.10.0030.01016.58
7.3.00.0090.00616.66
7.2.330.0100.00716.76
7.2.320.0040.01216.46
7.2.310.0060.01016.84
7.2.300.0060.01616.36
7.2.290.0110.01216.55
7.2.260.0060.01015.02
7.2.250.0030.01714.94
7.2.240.0070.00714.98
7.2.230.0040.01115.20
7.2.220.0030.01315.30
7.2.210.0060.00314.69
7.2.200.0070.00715.14
7.2.190.0040.01215.10
7.2.180.0030.00614.96
7.2.170.0060.00615.14
7.2.160.0070.01015.27
7.2.150.0090.00616.82
7.2.140.0090.00616.99
7.2.130.0090.00917.00
7.2.120.0030.00716.78
7.2.110.0000.01516.91
7.2.100.0030.01016.83
7.2.90.0150.00017.18
7.2.80.0060.01017.05
7.2.70.0000.01016.81
7.2.60.0080.00416.70
7.2.50.0120.00316.88
7.2.40.0060.00616.80
7.2.30.0090.00316.88
7.2.20.0000.01016.99
7.2.10.0090.00616.72
7.2.00.0070.00918.23
7.1.330.0000.01215.66
7.1.320.0060.01015.44
7.1.310.0100.00315.33
7.1.300.0000.00915.66
7.1.290.0050.00515.72
7.1.280.0030.01015.76
7.1.270.0000.01515.65
7.1.260.0060.00315.50
7.1.250.0130.00315.64
7.1.240.0030.00615.82
7.1.230.0030.01015.55
7.1.220.0090.00615.63
7.1.210.0000.01115.82
7.1.200.0040.01015.78
7.1.190.0040.00715.45
7.1.180.0000.01215.77
7.1.170.0040.01115.89
7.1.160.0090.00315.89
7.1.150.0100.00615.84
7.1.140.0110.00315.84
7.1.130.0030.01315.75
7.1.120.0030.00915.80
7.1.110.0040.00415.83
7.1.100.0070.00716.87
7.1.90.0070.00715.82
7.1.80.0070.01015.97
7.1.70.0050.00616.38
7.1.60.0060.01217.68
7.1.50.0050.00816.40
7.1.40.0110.00415.50
7.1.30.0070.00715.72
7.1.20.0050.00315.73
7.1.10.0040.00715.33
7.1.00.0030.04319.08
7.0.330.0030.01015.44
7.0.320.0000.01415.12
7.0.310.0130.00315.45
7.0.300.0070.00715.08
7.0.290.0030.00915.45
7.0.280.0070.00715.45
7.0.270.0040.01215.42
7.0.260.0030.00915.41
7.0.250.0100.00315.44
7.0.240.0000.01415.57
7.0.230.0000.01515.46
7.0.220.0080.00415.48
7.0.210.0040.01015.29
7.0.200.0190.01014.93
7.0.190.0030.01015.54
7.0.180.0030.00915.47
7.0.170.0070.00715.34
7.0.160.0040.00415.43
7.0.150.0060.00615.47
7.0.140.0060.00915.45
7.0.130.0000.01115.34
7.0.120.0070.00715.20
7.0.110.0030.01015.30
7.0.100.0040.00815.49
7.0.90.0000.01315.45
7.0.80.0030.00915.58
7.0.70.0000.01315.53
7.0.60.0120.04017.73
7.0.50.0070.02816.79
7.0.40.0070.04716.79
7.0.30.0140.02816.87
7.0.20.0100.03016.79
7.0.10.0060.04616.84
7.0.00.0030.04616.81
5.6.400.0160.00314.54
5.6.390.0030.01014.61
5.6.380.0030.00914.44
5.6.370.0040.01114.25
5.6.360.0000.00814.63
5.6.350.0000.00914.10
5.6.340.0080.00514.63
5.6.330.0040.00714.57
5.6.320.0130.00014.31
5.6.310.0080.00414.79
5.6.300.0050.00514.32
5.6.290.0060.00614.21
5.6.280.0020.03017.81
5.6.270.0000.00914.23
5.6.260.0040.00814.44
5.6.250.0030.01314.10
5.6.240.0090.00614.39
5.6.230.0030.00614.24
5.6.220.0070.00714.45
5.6.210.0090.04217.60
5.6.200.0120.04116.29
5.6.190.0110.03017.46
5.6.180.0020.04417.50
5.6.170.0180.04717.57
5.6.160.0030.03017.42
5.6.150.0070.04216.16
5.6.140.0060.04316.14
5.6.130.0080.03516.37
5.6.120.0040.02717.67
5.6.110.0070.04117.75
5.6.100.0070.04417.74
5.6.90.0070.04517.52
5.6.80.0090.03117.35
5.6.70.0100.00314.16
5.6.60.0040.01114.15
5.6.50.0030.01014.02
5.6.40.0040.00814.40
5.6.30.0030.01014.21
5.6.20.0070.00414.37
5.6.10.0130.00714.00
5.6.00.0070.00714.40
5.5.380.0100.00614.38
5.5.370.0040.01114.41
5.5.360.0070.00714.31
5.5.350.2010.02317.28
5.5.340.0030.02916.19
5.5.330.0090.04117.42
5.5.320.0130.02817.37
5.5.310.0170.04217.27
5.5.300.0120.03815.97
5.5.290.0070.04216.08
5.5.280.0030.02617.52
5.5.270.0070.03717.61
5.5.260.0090.04317.72
5.5.250.0050.04917.46
5.5.240.0050.02317.08
5.5.230.0000.01714.43
5.5.220.0030.01014.32
5.5.210.0000.00914.39
5.5.200.0000.01314.15
5.5.190.0030.01014.05
5.5.180.0000.01514.15
5.5.170.0060.00914.45
5.5.160.0060.01214.27
5.5.150.0060.00914.54
5.5.140.0000.01714.55
5.5.130.0090.00014.44
5.5.120.0080.00014.20
5.5.110.0030.01014.44
5.5.100.0080.00314.55
5.5.90.0030.01014.16
5.5.80.0030.01014.13
5.5.70.0040.00714.36
5.5.60.0030.01014.06
5.5.50.0070.00714.07
5.5.40.0070.00714.18
5.5.30.0030.00614.18
5.5.20.0050.00314.05
5.5.10.0000.00814.27
5.5.00.0000.01314.11

preferences:
66.16 ms | 401 KiB | 5 Q