3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class myClass { public function __construct(){ echo self::testMyStatic(); } private static function testMyStatic(){ return "Test Success"; } } Class myOtherClass extends myClass { public function __construct(){ parent::__construct(); } } $c = new myOtherClass();

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.0080.00616.50
8.3.50.0100.00316.31
8.3.40.0140.00718.85
8.3.30.0120.00318.92
8.3.20.0040.00421.92
8.3.10.0030.00621.87
8.3.00.0060.00317.25
8.2.180.0070.00718.29
8.2.170.0090.00618.86
8.2.160.0100.00722.96
8.2.150.0190.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.06
8.2.110.0070.00422.11
8.2.100.0080.00317.91
8.2.90.0080.00018.03
8.2.80.0040.00418.03
8.2.70.0050.00317.50
8.2.60.0080.00018.04
8.2.50.0000.00818.07
8.2.40.0000.00918.16
8.2.30.0070.00018.06
8.2.20.0040.00417.73
8.2.10.0040.00418.04
8.2.00.0030.00718.06
8.1.280.0070.00725.92
8.1.270.0120.00820.22
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0000.00823.88
8.1.230.0080.00721.09
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.22
8.1.190.0060.00317.22
8.1.180.0000.00918.10
8.1.170.0060.00320.30
8.1.160.0040.00421.82
8.1.150.0060.00318.72
8.1.140.0040.00417.39
8.1.130.0030.00317.76
8.1.120.0070.00017.45
8.1.110.0000.00817.41
8.1.100.0000.00717.26
8.1.90.0030.00417.41
8.1.80.0000.00717.41
8.1.70.0000.00817.36
8.1.60.0060.00317.56
8.1.50.0000.00817.53
8.1.40.0090.00317.55
8.1.30.0000.00917.56
8.1.20.0040.00417.64
8.1.10.0000.00717.57
8.1.00.0000.00817.42
8.0.300.0070.00020.02
8.0.290.0060.00316.75
8.0.280.0000.00718.45
8.0.270.0000.00817.26
8.0.260.0030.00317.18
8.0.250.0070.00016.97
8.0.240.0030.00316.86
8.0.230.0030.00316.95
8.0.220.0030.00316.83
8.0.210.0040.00416.81
8.0.200.0060.00016.91
8.0.190.0030.00416.88
8.0.180.0090.00316.82
8.0.170.0040.00416.75
8.0.160.0030.00516.91
8.0.150.0040.00416.80
8.0.140.0000.00716.80
8.0.130.0070.00013.22
8.0.120.0080.00016.71
8.0.110.0000.00716.72
8.0.100.0000.00716.71
8.0.90.0040.00416.70
8.0.80.0040.01416.75
8.0.70.0040.00416.70
8.0.60.0000.00716.82
8.0.50.0050.00216.89
8.0.30.0100.01217.28
8.0.20.0090.00917.40
8.0.10.0000.00716.84
8.0.00.0090.01116.95
7.4.330.0000.00515.03
7.4.320.0030.00316.58
7.4.300.0060.00016.60
7.4.290.0000.00716.59
7.4.280.0050.00216.61
7.4.270.0030.00316.62
7.4.260.0030.00316.35
7.4.250.0000.00716.37
7.4.240.0020.00516.53
7.4.230.0070.00016.56
7.4.220.0110.00616.67
7.4.210.0090.00916.53
7.4.200.0000.00716.63
7.4.160.0110.00716.53
7.4.150.0100.01017.40
7.4.140.0090.00917.86
7.4.130.0110.00816.50
7.4.120.0100.00716.51
7.4.110.0090.00916.47
7.4.100.0100.00916.59
7.4.90.0110.00716.41
7.4.80.0130.01019.39
7.4.70.0120.00916.57
7.4.60.0130.00316.53
7.4.50.0080.00016.67
7.4.40.0110.00516.32
7.4.30.0130.00316.29
7.4.00.0070.01214.92
7.3.330.0080.00013.21
7.3.320.0050.00213.09
7.3.310.0030.00316.22
7.3.300.0030.00316.25
7.3.290.0030.00316.11
7.3.280.0100.00616.24
7.3.270.0030.01317.40
7.3.260.0120.00616.56
7.3.250.0140.00316.38
7.3.240.0100.00716.45
7.3.230.0100.01516.52
7.3.210.0060.01016.38
7.3.200.0060.01519.39
7.3.190.0140.00316.35
7.3.180.0060.00916.05
7.3.170.0070.01116.48
7.3.160.0090.00616.41
7.3.120.0060.01014.79
7.3.110.0100.00314.83
7.3.100.0090.00614.75
7.3.90.0110.00414.94
7.3.80.0060.00314.71
7.3.70.0070.01014.71
7.3.60.0090.00614.71
7.3.50.0070.01014.86
7.3.40.0110.00414.68
7.3.30.0080.00414.41
7.3.20.0030.01316.54
7.3.10.0090.00016.38
7.3.00.0110.00416.69
7.2.330.0030.01416.46
7.2.320.0140.00816.79
7.2.310.0150.00916.76
7.2.300.0070.01016.63
7.2.290.0110.00816.54
7.2.250.0030.01415.09
7.2.240.0030.01614.78
7.2.230.0040.01114.81
7.2.220.0100.00714.87
7.2.210.0130.00314.90
7.2.200.0100.00715.14
7.2.190.0110.00714.84
7.2.180.0070.00314.78
7.2.170.0000.01015.04
7.2.00.0030.00919.32
7.1.330.0040.01215.71
7.1.320.0100.00315.55
7.1.310.0030.00915.79
7.1.300.0050.00515.66
7.1.290.0030.01315.43
7.1.280.0040.00815.57
7.1.270.0000.01115.76
7.1.260.0030.00615.49
7.1.200.0090.00015.65
7.1.100.0030.01318.09
7.1.70.0070.00317.01
7.1.60.0040.00719.50
7.1.50.0150.00616.68
7.1.00.0070.07322.37
7.0.200.0030.00316.76
7.0.60.0030.07319.91
7.0.50.0030.05317.77
7.0.40.0100.05320.38
7.0.30.0170.06020.09
7.0.20.0130.04720.16
7.0.10.0170.06720.09
7.0.00.0000.04320.07
5.6.280.0100.06721.08
5.6.210.0100.07720.68
5.6.200.0100.03318.20
5.6.190.0070.04020.52
5.6.180.0200.06320.64
5.6.170.0170.04320.52
5.6.160.0100.07720.43
5.6.150.0170.07018.22
5.6.140.0130.07718.11
5.6.130.0030.04318.14
5.6.120.0100.07720.75
5.6.110.0170.06720.99
5.6.100.0070.08321.09
5.6.90.0030.04320.95
5.6.80.0130.07020.41
5.5.350.0100.08720.44
5.5.340.0070.07718.09
5.5.330.0070.06320.29
5.5.320.0430.07320.27
5.5.310.0230.06020.34
5.5.300.0100.06317.98
5.5.290.0170.04018.04
5.5.280.0070.04020.66
5.5.270.0170.08020.86
5.5.260.0100.08320.93
5.5.250.0000.06020.69
5.5.240.0230.07320.27
5.4.450.0030.03319.39
5.4.440.0470.05019.40
5.4.430.0330.04019.26
5.4.420.0070.05719.59
5.4.410.0070.05719.02
5.4.400.0100.05318.77
5.4.390.0100.05318.63
5.4.380.0200.04718.79
5.4.370.0100.05018.52
5.4.360.0170.04718.75
5.4.350.0230.04018.58
5.4.340.0070.05718.63
5.4.320.0130.05718.47
5.4.310.0070.05718.47
5.4.300.0170.05018.63
5.4.290.0100.05718.63
5.4.280.0100.05318.46
5.4.270.0170.04718.80
5.4.260.0200.06318.79
5.4.250.0230.07018.61
5.4.240.0200.06018.79
5.4.230.0130.05318.60
5.4.220.0130.06718.46
5.4.210.0070.05718.72
5.4.200.0030.05716.55
5.4.190.0070.05318.45
5.4.180.0100.05318.82
5.4.170.0170.05718.77
5.4.160.0070.05318.45
5.4.150.0070.05718.82
5.4.140.0130.05016.23
5.4.130.0030.05316.22
5.4.120.0070.05316.29
5.4.110.0070.05016.37
5.4.100.0170.06016.20
5.4.90.0100.05316.35
5.4.80.0130.05016.19
5.4.70.0130.05316.43
5.4.60.0030.05716.41
5.4.50.0070.05016.24
5.4.40.0170.05016.27
5.4.30.0170.04316.30
5.4.20.0070.07316.27
5.4.10.0100.05316.28
5.4.00.0070.05015.75
5.3.290.0130.05014.89
5.3.280.0130.04714.78
5.3.270.0000.07014.63
5.3.260.0130.05314.59
5.3.250.0130.05014.60
5.3.240.0070.05314.61
5.3.230.0100.05314.72
5.3.220.0070.05714.61
5.3.210.0170.05714.61
5.3.200.0100.05014.68
5.3.190.0070.05714.55
5.3.180.0130.04714.67
5.3.170.0130.05314.76
5.3.160.0100.06014.56
5.3.150.0100.07714.55
5.3.140.0200.06014.60
5.3.130.0130.07014.55
5.3.120.0100.05714.57
5.3.110.0130.05314.53
5.3.100.0170.04714.09
5.3.90.0100.05314.07
5.3.80.0130.04714.11
5.3.70.0030.05314.16
5.3.60.0170.05013.99
5.3.50.0000.07013.99
5.3.40.0100.05314.00
5.3.30.0170.04713.93
5.3.20.0030.06013.69
5.3.10.0070.06013.66
5.3.00.0070.05313.70
5.2.170.0070.04311.37
5.2.160.0100.04011.19
5.2.150.0130.03711.25
5.2.140.0100.04011.26
5.2.130.0130.03711.21
5.2.120.0230.02711.18
5.2.110.0100.04311.21
5.2.100.0000.04711.14
5.2.90.0070.04311.35
5.2.80.0270.02311.14
5.2.70.0130.03711.13
5.2.60.0030.04311.06
5.2.50.0030.04711.10
5.2.40.0100.03711.11
5.2.30.0100.04011.03
5.2.20.0130.03710.95
5.2.10.0100.05011.05
5.2.00.0000.05010.72
5.1.60.0000.04010.18
5.1.50.0100.03310.19
5.1.40.0100.03310.00
5.1.30.0070.04010.56
5.1.20.0070.03710.55
5.1.10.0100.03310.20
5.1.00.0070.03310.21
5.0.50.0070.0278.67
5.0.40.0070.0238.52
5.0.30.0030.0438.29
5.0.20.0070.0238.27
5.0.10.0000.0338.27
5.0.00.0070.0408.30
4.4.90.0000.0235.94
4.4.80.0000.0235.98
4.4.70.0100.0135.87
4.4.60.0030.0205.87
4.4.50.0100.0135.89
4.4.40.0070.0306.00
4.4.30.0000.0235.88
4.4.20.0000.0335.93
4.4.10.0030.0305.95
4.4.00.0030.0335.89
4.3.110.0000.0275.83
4.3.100.0000.0235.93
4.3.90.0030.0205.86
4.3.80.0030.0375.78
4.3.70.0030.0205.84
4.3.60.0030.0275.81
4.3.50.0030.0305.77
4.3.40.0030.0405.86
4.3.30.0000.0304.64
4.3.20.0000.0304.57
4.3.10.0000.0304.57
4.3.00.0000.02015.55

preferences:
45.52 ms | 400 KiB | 5 Q