3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $test = 'A'; protected function tata() { return __CLASS__; } } class B extends A { public static $test = 'B'; public function toto() { return parent::tata(); } protected function tata() { return __CLASS__; } } $b = new B; echo $b->toto(); echo B::test;

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.0140.00318.65
8.3.50.0100.01021.99
8.3.40.0080.01118.84
8.3.30.0140.00718.99
8.3.20.0080.00020.34
8.3.10.0080.00023.61
8.3.00.0000.00819.08
8.2.180.0220.00018.49
8.2.170.0040.01122.96
8.2.160.0110.00422.19
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0040.00419.53
8.2.110.0040.00819.12
8.2.100.0030.00719.27
8.2.90.0050.00319.70
8.2.80.0040.00417.97
8.2.70.0080.00017.93
8.2.60.0080.00018.07
8.2.50.0000.00818.10
8.2.40.0040.00719.31
8.2.30.0000.00719.29
8.2.20.0080.00017.80
8.2.10.0000.00817.93
8.2.00.0030.00517.61
8.1.280.0150.00325.92
8.1.270.0000.00918.91
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00620.67
8.1.230.0040.00821.00
8.1.220.0050.00317.74
8.1.210.0040.00419.09
8.1.200.0060.00317.35
8.1.190.0040.00417.39
8.1.180.0030.00518.10
8.1.170.0040.00420.51
8.1.160.0000.00819.00
8.1.150.0040.00418.95
8.1.140.0030.00617.36
8.1.130.0000.00717.73
8.1.120.0000.00717.46
8.1.110.0070.00017.43
8.1.100.0040.00417.43
8.1.90.0080.00017.47
8.1.80.0040.00417.36
8.1.70.0040.00417.36
8.1.60.0030.00517.63
8.1.50.0050.00317.40
8.1.40.0050.00317.57
8.1.30.0000.00817.54
8.1.20.0080.00017.66
8.1.10.0020.00517.41
8.1.00.0080.00017.46
8.0.300.0030.00521.50
8.0.290.0000.00716.75
8.0.280.0070.00018.48
8.0.270.0040.00417.21
8.0.260.0000.00617.25
8.0.250.0000.00717.04
8.0.240.0000.00716.85
8.0.230.0000.00717.01
8.0.220.0000.00816.98
8.0.210.0000.00616.92
8.0.200.0070.00316.89
8.0.190.0080.00017.08
8.0.180.0070.00016.85
8.0.170.0040.00416.87
8.0.160.0030.00316.82
8.0.150.0040.00416.94
8.0.140.0030.00316.94
8.0.130.0030.00313.46
8.0.120.0000.00816.88
8.0.110.0040.00417.01
8.0.100.0030.00416.76
8.0.90.0080.00016.91
8.0.80.0060.00916.94
8.0.70.0000.00816.72
8.0.60.0020.00516.93
8.0.50.0000.00816.89
8.0.30.0110.01017.17
8.0.20.0150.00717.40
8.0.10.0030.00517.10
8.0.00.0100.00916.85
7.4.330.0050.00015.05
7.4.320.0030.00316.49
7.4.300.0030.00316.48
7.4.290.0000.00716.42
7.4.280.0000.00716.60
7.4.270.0070.00016.57
7.4.260.0000.00716.59
7.4.250.0030.00516.55
7.4.240.0030.00316.56
7.4.230.0000.00716.52
7.4.220.0070.01116.47
7.4.210.0080.00816.48
7.4.200.0000.00716.60
7.4.160.0040.01216.46
7.4.150.0070.01317.40
7.4.140.0100.00617.86
7.4.130.0100.00616.61
7.4.120.0120.00816.52
7.4.110.0080.01116.48
7.4.100.0100.01016.44
7.4.90.0040.01516.67
7.4.80.0070.01119.39
7.4.70.0120.00816.63
7.4.60.0130.00716.46
7.4.50.0000.00816.66
7.4.40.0070.01016.36
7.4.30.0160.00816.70
7.4.00.0030.01315.23
7.3.330.0000.00513.34
7.3.320.0030.00313.22
7.3.310.0080.00016.34
7.3.300.0070.00016.40
7.3.290.0060.00816.33
7.3.280.0060.01116.39
7.3.270.0140.00317.40
7.3.260.0100.00716.43
7.3.250.0060.01116.38
7.3.240.0100.00716.54
7.3.230.0130.00316.39
7.3.210.0100.00616.50
7.3.200.0080.01119.39
7.3.190.0040.01216.49
7.3.180.0090.00616.50
7.3.170.0100.01016.44
7.3.160.0090.01516.54
7.2.330.0100.01716.86
7.2.320.0180.00416.75
7.2.310.0060.01016.76
7.2.300.0080.00816.41
7.2.290.0140.00916.67
7.2.60.0030.01017.08
7.1.200.0000.01215.57
7.1.100.0100.00017.78
7.1.70.0000.00816.74
7.1.60.0140.01019.22
7.1.50.0030.00716.86
7.1.00.0000.08022.40
7.0.200.0000.00716.71
7.0.140.0000.07322.00
7.0.60.0100.08319.93
7.0.50.0100.03717.87
7.0.40.0070.08020.40
7.0.30.0300.07720.08
7.0.20.0100.04720.33
7.0.10.0100.04320.07
7.0.00.0100.08020.20
5.6.280.0030.07320.87
5.6.210.0130.07320.73
5.6.200.0070.08018.29
5.6.190.0030.06320.55
5.6.180.0330.07720.52
5.6.170.0270.07720.45
5.6.160.0000.05020.46
5.6.150.0030.07718.20
5.6.140.0070.08018.16
5.6.130.0100.07018.18
5.6.120.0070.03720.95
5.6.110.0170.06720.99
5.6.100.0100.08320.98
5.6.90.0100.08020.97
5.6.80.0030.07020.39
5.5.350.0330.07320.34
5.5.340.0130.07318.08
5.5.330.0070.09020.25
5.5.320.0270.07720.27
5.5.310.0200.04020.34
5.5.300.0070.08017.97
5.5.290.0030.04017.98
5.5.280.0000.07720.89
5.5.270.0070.03720.77
5.5.260.0030.08720.80
5.5.250.0070.08320.70
5.5.240.0070.07020.29
5.4.450.0400.04719.46
5.4.440.0130.06319.48
5.4.430.0170.05719.55
5.4.420.0170.05319.23
5.4.410.0230.04719.30
5.4.400.0100.05719.22
5.4.390.0100.06019.19
5.4.380.0230.05318.61
5.4.370.0330.05318.61
5.4.360.0100.06018.78
5.4.350.0170.05318.57
5.4.340.0200.07318.63
5.4.320.0370.05018.72
5.4.310.0200.06018.56
5.4.300.0070.06018.59
5.4.290.0200.05318.61
5.4.280.0230.05318.62
5.4.270.0230.04718.53
5.4.260.0200.05318.59
5.4.250.0300.05018.83
5.4.240.0400.03718.55
5.4.230.0370.06318.49
5.4.220.0100.07018.73
5.4.210.0230.05018.82
5.4.200.0200.04716.69
5.4.190.0230.05318.71
5.4.180.0200.05318.48
5.4.170.0130.06018.69
5.4.160.0230.05718.73
5.4.150.0230.05018.72
5.4.140.0300.05016.34
5.4.130.0170.05316.22
5.4.120.0230.05316.43
5.4.110.0170.06016.29
5.4.100.0200.05716.36
5.4.90.0130.05716.27
5.4.80.0330.04016.20
5.4.70.0230.05316.31
5.4.60.0300.04016.23
5.4.50.0430.04316.29
5.4.40.0130.06716.15
5.4.30.0370.05016.27
5.4.20.0200.06316.16
5.4.10.0170.05716.16
5.4.00.0270.04715.77
5.3.290.0130.06714.69
5.3.280.0100.08014.82
5.3.270.0170.08014.77
5.3.260.0270.06314.63
5.3.250.0330.04314.62
5.3.240.0230.05314.74
5.3.230.0230.07014.70
5.3.220.0170.05314.70
5.3.210.0300.05314.62
5.3.200.0270.05714.79
5.3.190.0270.05714.77
5.3.180.0270.05014.79
5.3.170.0200.04714.62
5.3.160.0170.06314.67
5.3.150.0130.05714.69
5.3.140.0200.05014.78
5.3.130.0200.05314.54
5.3.120.0170.06014.78
5.3.110.0230.04714.68
5.3.100.0130.05714.08
5.3.90.0270.04314.04
5.3.80.0170.05714.13
5.3.70.0200.05314.07
5.3.60.0230.04714.17
5.3.50.0230.04314.06
5.3.40.0170.05014.18
5.3.30.0270.04014.03
5.3.20.0200.05313.90
5.3.10.0130.05013.88
5.3.00.0200.05713.71
5.2.170.0130.05711.26
5.2.160.0170.04311.29
5.2.150.0200.04311.23
5.2.140.0200.05311.36
5.2.130.0200.04011.17
5.2.120.0070.04711.14
5.2.110.0130.04011.21
5.2.100.0100.04311.14
5.2.90.0230.04311.18
5.2.80.0170.04011.16
5.2.70.0070.04711.22
5.2.60.0100.05711.11
5.2.50.0170.04011.01
5.2.40.0070.05011.06
5.2.30.0130.04710.97
5.2.20.0030.05010.96
5.2.10.0170.03710.94
5.2.00.0100.04310.81
5.1.60.0130.03310.19
5.1.50.0100.03710.08
5.1.40.0130.03310.03
5.1.30.0200.03010.46
5.1.20.0170.03710.38
5.1.10.0130.04010.28
5.1.00.0100.04310.11
5.0.50.0200.0338.59
5.0.40.0070.0308.44
5.0.30.0000.0508.36
5.0.20.0030.0338.23
5.0.10.0070.0308.21
5.0.00.0030.0608.30
4.4.90.0100.0276.73
4.4.80.0030.0276.73
4.4.70.0100.0236.73
4.4.60.0100.0236.73
4.4.50.0170.0206.73
4.4.40.0030.0406.73
4.4.30.0100.0206.73
4.4.20.0070.0276.73
4.4.10.0170.0176.73
4.4.00.0100.0376.73
4.3.110.0100.0206.73
4.3.100.0070.0236.73
4.3.90.0130.0176.73
4.3.80.0030.0406.73
4.3.70.0070.0236.73
4.3.60.0030.0276.73
4.3.50.0000.0306.73
4.3.40.0030.0336.73
4.3.30.0100.0176.73
4.3.20.0030.0236.73
4.3.10.0000.0236.73
4.3.00.0100.0207.59

preferences:
47.05 ms | 401 KiB | 5 Q