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}"; } }; $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.40.0150.00018.84
8.3.30.0070.01118.71
8.3.20.0080.00020.21
8.3.10.0050.00323.51
8.3.00.0070.00023.54
8.2.170.0170.00322.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.17
8.2.120.0040.00426.35
8.2.110.0030.00722.12
8.2.100.0070.00617.91
8.2.90.0040.00418.03
8.2.80.0000.00819.40
8.2.70.0040.00417.68
8.2.60.0000.00818.04
8.2.50.0030.00618.10
8.2.40.0080.00020.59
8.2.30.0040.00420.64
8.2.20.0040.00417.79
8.2.10.0040.00417.98
8.2.00.0070.00017.92
8.1.270.0050.00523.90
8.1.260.0040.00428.09
8.1.250.0070.00728.09
8.1.240.0030.00624.03
8.1.230.0060.00620.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00717.10
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0040.00422.14
8.1.150.0050.00218.93
8.1.140.0030.00619.54
8.1.130.0040.00417.65
8.1.120.0040.00417.51
8.1.110.0000.00817.36
8.1.100.0040.00417.41
8.1.90.0080.00017.44
8.1.80.0000.00717.47
8.1.70.0000.00717.35
8.1.60.0040.00417.48
8.1.50.0000.00817.38
8.1.40.0000.00817.56
8.1.30.0080.00017.61
8.1.20.0070.00017.68
8.1.10.0030.00517.47
8.1.00.0040.00417.46
8.0.300.0000.00721.97
8.0.290.0040.00416.88
8.0.280.0030.00318.37
8.0.270.0040.00417.10
8.0.260.0030.00317.31
8.0.250.0000.00716.98
8.0.240.0070.00017.07
8.0.230.0000.00717.09
8.0.220.0070.00016.86
8.0.210.0000.00716.97
8.0.200.0000.00617.00
8.0.190.0080.00017.03
8.0.180.0040.00416.98
8.0.170.0000.00716.93
8.0.160.0000.00716.93
8.0.150.0030.00516.95
8.0.140.0080.00016.92
8.0.130.0080.00013.39
8.0.120.0000.00816.90
8.0.110.0050.00316.87
8.0.100.0000.01016.81
8.0.90.0000.00716.89
8.0.80.0090.00616.91
8.0.70.0000.00716.95
8.0.60.0040.00416.83
8.0.50.0070.00016.70
8.0.30.0090.01116.91
8.0.20.0120.00717.40
8.0.10.0040.00416.88
8.0.00.0090.01216.80
7.4.330.0050.00016.73
7.4.320.0000.00616.45
7.4.300.0000.00616.49
7.4.290.0000.00716.54
7.4.280.0030.00616.44
7.4.270.0000.00716.50
7.4.260.0040.00416.48
7.4.250.0000.00716.46
7.4.240.0020.00516.52
7.4.230.0060.00316.61
7.4.220.0310.00916.54
7.4.210.0070.00616.45
7.4.200.0030.00316.30
7.4.160.0140.00316.44
7.4.150.0110.00717.40
7.4.140.0070.01217.86
7.4.130.0110.01016.39
7.4.120.0090.00916.60
7.4.110.0110.00716.70
7.4.100.0180.00316.57
7.4.90.0180.00016.42
7.4.80.0030.01319.39
7.4.70.0060.01116.46
7.4.60.0030.01716.48
7.4.50.0110.00716.48
7.4.40.0110.00516.77
7.4.30.0130.00316.43
7.4.10.0060.00915.11
7.4.00.0050.01114.88
7.3.330.0050.00013.31
7.3.320.0060.00013.28
7.3.310.0040.00416.39
7.3.300.0060.00016.21
7.3.290.0090.00816.37
7.3.280.0070.01016.36
7.3.270.0130.01017.40
7.3.260.0060.01116.43
7.3.250.0090.00916.44
7.3.240.0110.01116.60
7.3.230.0100.00716.45
7.3.210.0090.00916.52
7.3.200.0090.00916.27
7.3.190.0110.00616.34
7.3.180.0120.00316.39
7.3.170.0090.00616.43
7.3.160.0090.00916.39
7.3.130.0110.00415.11
7.3.120.0090.00615.11
7.3.110.0070.01115.11
7.3.100.0120.00315.11
7.3.90.0070.00715.11
7.3.80.0060.00615.11
7.3.70.0040.00715.11
7.3.60.0040.00815.11
7.3.50.0070.00715.11
7.3.40.0060.00915.11
7.3.30.0030.00715.11
7.3.20.0000.01316.81
7.3.10.0000.00916.65
7.3.00.0100.00316.80
7.2.330.0140.00416.36
7.2.320.0130.00316.82
7.2.310.0070.01016.62
7.2.300.0140.00316.42
7.2.290.0100.00716.48
7.2.260.0030.01715.32
7.2.250.0060.01015.11
7.2.240.0040.01215.11
7.2.230.0030.01015.29
7.2.220.0140.00015.11
7.2.210.0040.01115.11
7.2.200.0100.00015.11
7.2.190.0030.01015.13
7.2.180.0120.00415.11
7.2.170.0070.00715.11
7.2.160.0100.00315.11
7.2.150.0070.01117.06
7.2.140.0000.01317.14
7.2.130.0000.01516.88
7.2.120.0070.00716.87
7.2.110.0040.00816.96
7.2.100.0040.00717.13
7.2.90.0070.00716.86
7.2.80.0040.01117.16
7.2.70.0070.00717.00
7.2.60.0100.00416.75
7.2.50.0060.00916.98
7.2.40.0070.00716.86
7.2.30.0030.01217.05
7.2.20.0110.00416.91
7.2.10.0050.00516.97
7.2.00.0050.01018.30
7.1.330.0030.00615.65
7.1.320.0100.00715.78
7.1.310.0000.00915.74
7.1.300.0000.01415.62
7.1.290.0030.01415.72
7.1.280.0040.00715.65
7.1.270.0060.00915.48
7.1.260.0060.00615.52
7.1.250.0120.00015.49
7.1.240.0070.00415.93
7.1.230.0030.01415.87
7.1.220.0040.00715.80
7.1.210.0060.00615.57
7.1.200.0030.00915.84
7.1.190.0050.00315.74
7.1.180.0090.00315.74
7.1.170.0000.01415.91
7.1.160.0080.00015.77
7.1.150.0100.00715.64
7.1.140.0060.00915.67
7.1.130.0000.01415.50
7.1.120.0000.01515.91
7.1.110.0060.00615.70
7.1.100.0080.00516.83
7.1.90.0030.01015.88
7.1.80.0090.00015.54
7.1.70.0070.00716.46
7.1.60.0080.01117.47
7.1.50.0080.00816.18
7.1.40.0000.01315.65
7.1.30.0080.00415.64
7.1.20.0110.00415.71
7.1.10.0000.00815.77
7.1.00.0070.04019.09
7.0.330.0000.01615.46
7.0.320.0040.00815.45
7.0.310.0060.00615.17
7.0.300.0030.01015.65
7.0.290.0000.01415.44
7.0.280.0070.00315.55
7.0.270.0030.00715.18
7.0.260.0100.00615.38
7.0.250.0080.00815.38
7.0.240.0060.00915.36
7.0.230.0060.01015.36
7.0.220.0000.01515.41
7.0.210.0100.00315.32
7.0.200.0230.00615.01
7.0.190.0000.01215.37
7.0.180.0040.00415.23
7.0.170.0050.00315.59
7.0.160.0060.00615.12
7.0.150.0060.00315.50
7.0.140.0040.00815.37
7.0.130.0070.00715.63
7.0.120.0000.01415.48
7.0.110.0090.00315.31
7.0.100.0040.01115.13
7.0.90.0140.00015.32
7.0.80.0000.01415.60
7.0.70.0000.01215.23
7.0.60.0070.03617.62
7.0.50.0060.04216.60
7.0.40.0050.04717.58
7.0.30.0150.02217.67
7.0.20.0140.04217.65
7.0.10.0050.03817.61
7.0.00.0040.03317.60
5.6.400.0140.00015.11
5.6.390.0100.00715.11
5.6.380.0060.01015.11
5.6.370.0000.01315.11
5.6.360.0000.00915.11
5.6.350.0070.00715.11
5.6.340.0030.01015.11
5.6.330.0080.00015.11
5.6.320.0060.00315.11
5.6.310.0030.01015.11
5.6.300.0090.00615.11
5.6.290.0030.01015.11
5.6.280.0020.02518.12
5.6.270.0000.01415.11
5.6.260.0000.01415.11
5.6.250.0060.00915.11
5.6.240.0040.01115.11
5.6.230.0000.01615.11
5.6.220.0070.00715.11
5.6.210.0070.04217.88
5.6.200.0050.03816.61
5.6.190.0060.03117.86
5.6.180.0130.02817.76
5.6.170.0150.04017.85
5.6.160.0050.04117.79
5.6.150.0050.04416.66
5.6.140.0080.02516.69
5.6.130.0070.02916.65
5.6.120.0090.01718.13
5.6.110.0070.03418.06
5.6.100.0090.04218.11
5.6.90.0080.03618.03
5.6.80.0090.03617.81
5.6.70.0060.00315.11
5.6.60.0130.00015.11
5.6.50.0120.00615.11
5.6.40.0170.00015.11
5.6.30.0000.01615.11
5.6.20.0070.01015.11
5.6.10.0090.00615.11
5.6.00.0090.00915.11
5.5.380.0030.01015.11
5.5.370.0030.01315.11
5.5.360.0060.00315.11
5.5.350.2220.01817.73
5.5.340.0110.02216.55
5.5.330.0050.03317.77
5.5.320.0180.02517.71
5.5.310.0170.04017.75
5.5.300.0050.04116.57
5.5.290.0100.03816.57
5.5.280.0050.02417.93
5.5.270.0020.03617.97
5.5.260.0050.03017.99
5.5.250.0070.03017.88
5.5.240.0030.02317.65
5.5.230.0070.00715.11
5.5.220.0060.00615.11
5.5.210.0070.01115.11
5.5.200.0090.00315.11
5.5.190.0060.00315.11
5.5.180.0030.01015.11
5.5.170.0000.01615.11
5.5.160.0090.00615.11
5.5.150.0100.00715.11
5.5.140.0040.01115.11
5.5.130.0110.00715.11
5.5.120.0030.01015.11
5.5.110.0070.01015.11
5.5.100.0000.01415.11
5.5.90.0070.00315.11
5.5.80.0030.01015.11
5.5.70.0070.00715.11
5.5.60.0070.01015.11
5.5.50.0070.00715.11
5.5.40.0120.00315.11
5.5.30.0120.00615.11
5.5.20.0130.00615.11
5.5.10.0030.01315.11
5.5.00.0060.00615.11

preferences:
51.34 ms | 400 KiB | 5 Q