3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TC { public function test(){ return 10; } } class TB extends TC { public function test(){ $a = $this->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.0030.01416.25
8.3.50.0170.00521.98
8.3.40.0070.00718.71
8.3.30.0110.00318.46
8.3.20.0070.00020.31
8.3.10.0080.00023.61
8.3.00.0060.00317.35
8.2.180.0120.00918.29
8.2.170.0100.00722.96
8.2.160.0130.00720.47
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0040.00822.11
8.2.100.0090.00317.91
8.2.90.0060.00319.14
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00419.34
8.2.30.0050.00220.49
8.2.20.0000.00817.44
8.2.10.0070.00017.96
8.2.00.0070.00017.92
8.1.280.0100.00725.92
8.1.270.0090.00023.78
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.38
8.1.230.0090.00317.43
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0030.00617.11
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00818.96
8.1.160.0040.00421.94
8.1.150.0040.00420.58
8.1.140.0040.00419.43
8.1.130.0040.00417.52
8.1.120.0080.00017.38
8.1.110.0000.00817.21
8.1.100.0040.00417.18
8.1.90.0000.00717.36
8.1.80.0030.00417.16
8.1.70.0000.00717.32
8.1.60.0000.00717.40
8.1.50.0040.00417.42
8.1.40.0000.00817.38
8.1.30.0000.01017.43
8.1.20.0040.00417.50
8.1.10.0070.00017.38
8.1.00.0050.00317.35
8.0.300.0000.00718.77
8.0.290.0040.00416.62
8.0.280.0000.00718.22
8.0.270.0030.00317.03
8.0.260.0000.00617.00
8.0.250.0040.00416.71
8.0.240.0000.00716.71
8.0.230.0070.00016.73
8.0.220.0000.00716.72
8.0.210.0000.00716.80
8.0.200.0040.00416.83
8.0.190.0000.01016.80
8.0.180.0000.00916.74
8.0.170.0040.00416.75
8.0.160.0060.00316.78
8.0.150.0000.00816.74
8.0.140.0000.00716.59
8.0.130.0060.00013.12
8.0.120.0080.00016.76
8.0.110.0000.00816.69
8.0.100.0040.00416.58
8.0.90.0000.00716.59
8.0.80.0040.01116.74
8.0.70.0020.00516.64
8.0.60.0000.00716.87
8.0.50.0070.00016.70
8.0.30.0070.01417.08
8.0.20.0100.00817.40
8.0.10.0040.00416.90
8.0.00.0100.00916.54
7.4.330.0050.00015.08
7.4.320.0030.00616.49
7.4.300.0030.00316.47
7.4.290.0070.00016.22
7.4.280.0000.00716.41
7.4.270.0000.00716.52
7.4.260.0070.00016.37
7.4.250.0000.00716.43
7.4.240.0050.00216.37
7.4.230.0000.00716.50
7.4.220.0120.00616.51
7.4.210.0080.00616.46
7.4.200.0000.00716.46
7.4.160.0070.00716.59
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0110.01116.23
7.4.120.0080.01016.22
7.4.110.0070.01116.46
7.4.100.0200.00816.41
7.4.90.0140.00316.47
7.4.80.0100.00719.39
7.4.70.0030.01416.11
7.4.60.0090.00616.48
7.4.50.0080.00016.23
7.4.40.0100.00716.32
7.4.30.0130.00316.34
7.4.00.0060.01014.65
7.3.330.0060.00013.12
7.3.320.0030.00313.01
7.3.310.0040.00416.21
7.3.300.0050.00316.18
7.3.290.0030.00316.18
7.3.280.0080.00716.16
7.3.270.0130.00317.40
7.3.260.0040.01816.32
7.3.240.0100.00716.15
7.3.230.0070.01016.39
7.3.210.0100.00716.26
7.3.200.0130.00316.15
7.3.190.0030.01316.08
7.3.180.0100.01016.11
7.3.170.0060.00916.27
7.3.160.0090.00616.09
7.3.120.0090.00714.73
7.3.110.0000.01414.40
7.3.100.0070.00314.85
7.3.90.0130.00614.77
7.3.80.0160.00014.45
7.3.70.0060.00914.70
7.3.60.0000.01414.73
7.3.50.0030.01014.63
7.3.40.0120.00314.34
7.3.30.0070.00714.42
7.3.20.0120.00316.54
7.3.10.0110.00416.48
7.3.00.0090.00616.52
7.2.330.0090.00916.50
7.2.320.0130.00316.17
7.2.310.0200.00816.50
7.2.300.0080.00816.48
7.2.290.0070.01016.30
7.2.250.0080.01114.63
7.2.240.0040.01414.44
7.2.230.0060.00914.80
7.2.220.0070.01014.59
7.2.210.0040.01214.93
7.2.200.0180.00015.02
7.2.190.0030.01014.56
7.2.180.0070.00714.94
7.2.170.0060.00614.80
7.1.330.0000.01615.44
7.1.320.0070.00315.57
7.1.310.0110.00415.41
7.1.300.0040.01115.53
7.1.290.0070.00715.52
7.1.280.0080.00415.36
7.1.270.0090.00615.77
7.1.260.0120.00015.50
7.1.70.0070.00716.58
7.1.60.0060.01019.43
7.1.50.0030.01716.77
7.1.00.0030.07022.36
7.0.200.0600.01314.77
7.0.60.0070.05319.86
7.0.50.0000.04717.84
7.0.40.0070.04720.24
7.0.30.0170.04320.07
7.0.20.0370.04320.11
7.0.10.0170.07320.15
7.0.00.0030.04320.33
5.6.280.0030.03320.82
5.6.210.0100.07720.56
5.6.200.0030.08718.23
5.6.190.0070.07020.41
5.6.180.3600.03720.78
5.6.170.0270.05020.51
5.6.160.0070.05720.54
5.6.150.0100.07718.19
5.6.140.0070.07318.14
5.6.130.0000.08718.23
5.6.120.0070.08320.97
5.6.110.0100.08320.99
5.6.100.0000.04321.13
5.6.90.0130.07721.00
5.6.80.0070.04720.40
5.5.350.3070.04020.45
5.5.340.0030.03717.97
5.5.330.0030.04020.29
5.5.320.0130.05720.20
5.5.310.0230.06720.23
5.5.300.0070.07317.99
5.5.290.0100.05718.07
5.5.280.0200.04020.75
5.5.270.0130.05720.86
5.5.260.0070.08320.89
5.5.250.0100.07320.71
5.5.240.0030.03720.07
5.4.450.0070.06019.45
5.4.440.0030.06319.46
5.4.430.0070.08319.31
5.4.420.0400.05319.40
5.4.410.0670.04319.30
5.4.400.0670.04318.99
5.4.390.0670.05319.11
5.4.380.0700.05719.05
5.4.370.0600.05018.94
5.4.360.0670.04718.79
5.4.350.0500.06019.15
5.4.340.0630.05318.93
5.4.320.0630.05318.78
5.4.310.0500.06019.08
5.4.300.0500.05719.17
5.4.290.0570.05319.21
5.4.280.0630.05319.09
5.4.270.0500.05719.06
5.4.260.0430.05319.06
5.4.250.0670.05018.75
5.4.240.0570.05318.77
5.4.230.0430.05718.79
5.4.220.0500.05319.10
5.4.210.0430.05318.93
5.4.200.0530.05018.75
5.4.190.0470.06018.77
5.4.180.0470.06318.88
5.4.170.0630.05019.08
5.4.160.0670.04319.13
5.4.150.0570.05318.78
5.4.140.0600.05316.48
5.4.130.0600.04716.42
5.4.120.0600.05016.54
5.4.110.0770.04016.57
5.4.100.0630.04316.28
5.4.90.0630.04316.57
5.4.80.0600.04716.20
5.4.70.0700.04016.56
5.4.60.0770.03016.54
5.4.50.0530.05716.62
5.4.40.0530.05316.49
5.4.30.0570.05016.49
5.4.20.0570.05016.21
5.4.10.0700.04316.40
5.4.00.0530.05316.12

preferences:
43.38 ms | 401 KiB | 5 Q