3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Abstract Surfer Class * * @package hangten */ abstract class Surfer { abstract protected function rideWave($amplitude); public function applyWax($waxType){ echo("Ahh, all waxed up with '".$waxType."'. Ready to go!"); } public function paddleOut(){ echo("Paddling...."); } public function screamShark(){ echo("SHARK!!"); } } /** * RookieSurfer Class * * This surfer is green and can barely surf. * @package hangten */ class RookieSurfer extends Surfer { protected function rideWave($amplitude = 1){ echo("Trying.. Trying.. to ride a ".$amplitude."ft. wave, whew!"); } } /** * ProSurfer Class * * This surfer is crazy skilled!! * @package hangten */ class ProSurfer extends Surfer { protected function rideWave($amplitude = 8){ echo("Riding a ".$amplitude."ft. wave backwards doing a backflip!"); } } $rookie = new RookieSurfer; $rookie->applyWax('candleWax') ->paddleout() ->rideWave(2);

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.00816.63
8.3.50.0160.01516.47
8.3.40.0040.01118.84
8.3.30.0110.00418.71
8.3.20.0040.00418.82
8.3.10.0080.00020.61
8.3.00.0030.00619.50
8.2.180.0170.00318.29
8.2.170.0090.00622.96
8.2.160.0130.00720.53
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00819.83
8.2.110.0070.00321.05
8.2.100.0000.01117.84
8.2.90.0060.00319.17
8.2.80.0060.00318.16
8.2.70.0030.00617.63
8.2.60.0030.00517.90
8.2.50.0090.00018.07
8.2.40.0080.00018.28
8.2.30.0070.00018.07
8.2.20.0050.00217.72
8.2.10.0060.00317.73
8.2.00.0040.00417.86
8.1.280.0070.01425.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.82
8.1.230.0090.00320.96
8.1.220.0000.00917.74
8.1.210.0030.00518.89
8.1.200.0060.00317.48
8.1.190.0000.00717.51
8.1.180.0000.00818.10
8.1.170.0040.00418.89
8.1.160.0020.00518.89
8.1.150.0040.00418.70
8.1.140.0110.00017.40
8.1.130.0030.00317.67
8.1.120.0070.00017.48
8.1.110.0040.00417.41
8.1.100.0030.00417.36
8.1.90.0040.00417.44
8.1.80.0000.00717.46
8.1.70.0000.00717.45
8.1.60.0080.00017.48
8.1.50.0030.00617.48
8.1.40.0000.00817.54
8.1.30.0000.00817.64
8.1.20.0040.00417.54
8.1.10.0050.00217.55
8.1.00.0000.00717.50
8.0.300.0040.00419.95
8.0.290.0080.00016.88
8.0.280.0000.00718.45
8.0.270.0050.00217.26
8.0.260.0000.00616.75
8.0.250.0040.00416.89
8.0.240.0040.00417.00
8.0.230.0070.00017.03
8.0.220.0050.00216.97
8.0.210.0020.00516.86
8.0.200.0040.00416.91
8.0.190.0000.00716.98
8.0.180.0040.00416.87
8.0.170.0040.00416.86
8.0.160.0000.00816.84
8.0.150.0040.00716.86
8.0.140.0000.01216.95
8.0.130.0000.00813.38
8.0.120.0040.00416.94
8.0.110.0040.00416.97
8.0.100.0030.00616.95
8.0.90.0040.00416.99
8.0.80.0160.00016.93
8.0.70.0040.00416.78
8.0.60.0040.00416.74
8.0.50.0020.00516.95
8.0.30.0110.00817.20
8.0.20.0110.01416.91
8.0.10.0040.00416.83
8.0.00.0110.00816.74
7.4.330.0000.00512.96
7.4.320.0030.00316.46
7.4.300.0030.00316.57
7.4.290.0030.00316.65
7.4.280.0000.00716.61
7.4.270.0080.00016.60
7.4.260.0050.00013.24
7.4.250.0060.00316.39
7.4.240.0050.00216.50
7.4.230.0070.00016.64
7.4.220.0120.01216.37
7.4.210.0070.00916.63
7.4.200.0040.00416.54
7.4.190.0050.00216.60
7.4.160.0170.00716.45
7.4.150.0090.00916.70
7.4.140.0100.01016.45
7.4.130.0080.00916.44
7.4.120.0060.01116.57
7.4.110.0090.01216.60
7.4.100.0090.00816.48
7.4.90.0090.00916.55
7.4.80.0100.01316.50
7.4.70.0040.01216.47
7.4.60.0090.00916.46
7.4.50.0020.00216.52
7.4.40.0030.01416.42
7.4.30.0070.00716.64
7.4.10.0070.01415.02
7.4.00.0080.00814.89
7.3.330.0030.00313.20
7.3.320.0050.00013.35
7.3.310.0000.00716.41
7.3.300.0030.00316.24
7.3.290.0100.01016.39
7.3.280.0080.01116.34
7.3.270.0070.01116.59
7.3.260.0080.00916.46
7.3.250.0080.01316.45
7.3.240.0190.00316.42
7.3.230.0090.00916.45
7.3.210.0070.01016.53
7.3.200.0090.00919.39
7.3.190.0060.01216.41
7.3.180.0060.00916.48
7.3.170.0130.00416.58
7.3.160.0120.00416.57
7.3.130.0100.00714.77
7.3.120.0060.00914.75
7.3.110.0000.02014.80
7.3.100.0100.00715.05
7.3.90.0040.01414.96
7.3.80.0030.01214.82
7.3.70.0060.00314.89
7.3.60.0120.00314.88
7.3.50.0100.00714.54
7.3.40.0080.00815.00
7.3.30.0110.00814.76
7.3.20.0080.00016.59
7.3.10.0040.01116.73
7.3.00.0070.00716.70
7.2.330.0090.01616.80
7.2.320.0100.01316.39
7.2.310.0130.01016.72
7.2.300.0160.00616.65
7.2.290.0110.00716.70
7.2.260.0030.00914.92
7.2.250.0070.01115.07
7.2.240.0060.00914.88
7.2.230.0070.00714.91
7.2.220.0060.01214.80
7.2.210.0050.00815.12
7.2.200.0110.00715.11
7.2.190.0100.00314.71
7.2.180.0000.01515.09
7.2.170.0090.00615.10
7.2.160.0040.01214.90
7.2.150.0060.00616.93
7.2.140.0070.00716.88
7.2.130.0110.00416.67
7.2.120.0030.01216.83
7.2.110.0100.00316.93
7.2.100.0040.01416.84
7.2.90.0040.01116.93
7.2.80.0060.00816.87
7.2.70.0000.00916.91
7.2.60.0060.01016.89
7.2.50.0090.00616.95
7.2.40.0100.00617.07
7.2.30.0040.01216.96
7.2.20.0040.00817.06
7.2.10.0100.00716.94
7.2.00.0060.00718.10
7.1.330.0060.00615.96
7.1.320.0060.01215.33
7.1.310.0070.00715.77
7.1.300.0040.00715.70
7.1.290.0100.00315.80
7.1.280.0030.01515.32
7.1.270.0040.01415.42
7.1.260.0000.01015.61
7.1.250.0070.00415.51
7.1.240.0000.01215.55
7.1.230.0100.00315.49
7.1.220.0040.01115.79
7.1.210.0090.00015.53
7.1.200.0010.00915.64
7.1.190.0040.00815.71
7.1.180.0030.00615.77
7.1.170.0070.00715.86
7.1.160.0060.00615.71
7.1.150.0090.00615.54
7.1.140.0130.00315.55
7.1.130.0060.00615.78
7.1.120.0000.01315.56
7.1.110.0150.00315.79
7.1.100.0050.00916.58
7.1.90.0090.00015.41
7.1.80.0000.01315.84
7.1.70.0040.00616.47
7.1.60.0050.01517.48
7.1.50.0050.01416.32
7.1.40.0100.00015.82
7.1.30.0060.00615.51
7.1.20.0040.00415.76
7.1.10.0040.01115.62
7.1.00.0020.04019.14
7.0.330.0070.00715.21
7.0.320.0030.00715.18
7.0.310.0040.00815.19
7.0.300.0070.00715.13
7.0.290.0060.00315.11
7.0.280.0030.01115.21
7.0.270.0070.00715.44
7.0.260.0060.01015.37
7.0.250.0080.00315.10
7.0.240.0090.00315.24
7.0.230.0030.01015.49
7.0.220.0070.00715.41
7.0.210.0000.01215.38
7.0.200.0030.00615.74
7.0.190.0040.00415.39
7.0.180.0070.00715.27
7.0.170.0040.01115.29
7.0.160.0100.00015.36
7.0.150.0080.00015.45
7.0.140.0070.03518.79
7.0.130.0080.00315.06
7.0.120.0030.03918.53
7.0.110.0030.01015.10
7.0.100.0060.00615.38
7.0.90.0080.00415.11
7.0.80.0080.00315.29
7.0.70.0040.00415.52
7.0.60.0050.03617.54
7.0.50.0050.04616.67
7.0.40.0080.04116.75
7.0.30.0130.04516.79
7.0.20.0200.02716.73
7.0.10.0050.02816.79
7.0.00.0070.03616.83
5.6.400.0000.00913.99
5.6.390.0100.00714.25
5.6.380.0050.00514.42
5.6.370.0030.01014.00
5.6.360.0080.00014.00
5.6.350.0030.01014.55
5.6.340.0090.00614.26
5.6.330.0000.00814.33
5.6.320.0070.00714.09
5.6.310.0040.01114.27
5.6.300.0060.00614.20
5.6.290.0090.00514.25
5.6.280.0020.04117.81
5.6.270.0110.00614.32
5.6.260.0040.01213.90
5.6.250.0060.00614.20
5.6.240.0040.00414.28
5.6.230.0080.00414.12
5.6.220.0080.00014.11
5.6.210.0080.03617.26
5.6.200.0030.04016.17
5.6.190.0070.04217.38
5.6.180.0190.03217.53
5.6.170.0200.04517.34
5.6.160.0050.05417.40
5.6.150.0090.02616.33
5.6.140.0050.02316.33
5.6.130.0050.03816.34
5.6.120.0070.04417.72
5.6.110.0130.03817.84
5.6.100.0080.03517.66
5.6.90.0020.03717.65
5.6.80.0060.04417.20
5.6.70.0040.01214.30
5.6.60.0130.00314.38
5.6.50.0060.00614.48
5.6.40.0000.01314.04
5.6.30.0070.00714.25
5.6.20.0070.00714.26
5.6.10.0040.00714.23
5.6.00.0030.00614.18
5.5.380.0060.00614.36
5.5.370.0040.00714.11
5.5.360.0030.00914.23
5.5.350.0180.04417.28
5.5.340.0100.04416.06
5.5.330.0070.03317.28
5.5.320.0220.03517.11
5.5.310.0200.04517.24
5.5.300.0090.02216.04
5.5.290.0030.02816.00
5.5.280.0070.04517.42
5.5.270.0080.02517.38
5.5.260.0090.04517.68
5.5.250.0050.04717.18
5.5.240.0030.04317.19
5.5.230.0100.00013.72
5.5.220.0070.00413.79
5.5.210.0100.00713.79
5.5.200.0000.01614.13
5.5.190.0000.01313.91
5.5.180.0030.01213.91
5.5.170.0100.00014.27
5.5.160.0060.00614.11
5.5.150.0060.01213.93
5.5.140.0040.01113.90
5.5.130.0070.01014.04
5.5.120.0130.00014.21
5.5.110.0110.00014.43
5.5.100.0110.00413.96
5.5.90.0130.00313.98
5.5.80.0100.00714.18
5.5.70.0040.01414.15
5.5.60.0030.01413.95
5.5.50.0000.01114.25
5.5.40.0100.00314.22
5.5.30.0030.00713.99
5.5.20.0070.00713.96
5.5.10.0090.00614.08
5.5.00.0000.00914.04
5.4.450.0030.03115.76
5.4.440.0030.03115.83
5.4.430.0160.03115.82
5.4.420.0090.03815.85
5.4.410.0120.03715.79
5.4.400.0050.02215.56
5.4.390.0050.03715.72
5.4.380.0070.04015.66
5.4.370.0070.03215.65
5.4.360.0050.02515.55
5.4.350.0100.03115.69
5.4.340.0020.02415.58
5.4.330.0050.00312.18
5.4.320.0030.03815.65
5.4.310.0080.02015.71
5.4.300.0060.02015.63
5.4.290.0030.03615.71
5.4.280.0050.02315.71
5.4.270.0030.02715.58
5.4.260.0050.03915.52
5.4.250.0080.03115.66
5.4.240.0050.02315.55
5.4.230.0050.02315.71
5.4.220.0110.03215.66
5.4.210.0020.04015.53
5.4.200.0030.03515.66
5.4.190.0070.03715.57
5.4.180.0050.02715.71
5.4.170.0030.02915.66
5.4.160.0080.04015.71
5.4.150.0060.04115.68
5.4.140.0020.04614.26
5.4.130.0060.03314.30
5.4.120.0020.02214.37
5.4.110.0030.04114.30
5.4.100.0050.04314.31
5.4.90.0020.04114.33
5.4.80.0080.02814.26
5.4.70.0080.02614.26
5.4.60.0080.02314.23
5.4.50.0030.04214.22
5.4.40.0110.03614.23
5.4.30.0100.03514.34
5.4.20.0050.04214.22
5.4.10.0020.02414.41
5.4.00.0120.03414.01
5.3.290.0060.02713.42
5.3.280.0020.02813.42
5.3.270.0060.03813.40
5.3.260.0120.03613.38
5.3.250.0030.04013.39
5.3.240.0000.02813.41
5.3.230.0130.03113.46
5.3.220.0030.04413.46
5.3.210.0120.02213.38
5.3.200.0030.04213.32
5.3.190.0060.02513.38
5.3.180.0030.03013.38
5.3.170.0020.04313.40
5.3.160.0030.04613.40
5.3.150.0070.04213.38
5.3.140.0050.04313.38
5.3.130.0070.03513.38
5.3.120.0100.04113.39
5.3.110.0030.03013.33
5.3.100.0050.02813.11
5.3.90.0050.03113.14
5.3.80.0050.02513.09
5.3.70.0050.04013.09
5.3.60.0030.02713.12
5.3.50.0070.03913.14
5.3.40.0080.01813.07
5.3.30.0020.02513.07
5.3.20.0020.02212.98
5.3.10.0070.02512.92
5.3.00.0030.04212.91
5.2.170.0000.04011.11
5.2.160.0030.06711.16
5.2.150.0070.02711.20
5.2.140.0030.03011.22
5.2.130.0100.04311.11
5.2.120.0170.04711.17
5.2.110.0000.03311.11
5.2.100.0070.05311.06
5.2.90.0000.06711.02
5.2.80.0000.06711.07
5.2.70.0030.06311.06
5.2.60.0000.07011.05
5.2.50.0070.04710.96
5.2.40.0030.06010.99
5.2.30.0070.05710.95
5.2.20.0030.06011.12
5.2.10.0100.05710.89
5.2.00.0030.06310.74
5.1.60.0130.0379.91
5.1.50.0000.0609.98
5.1.40.0070.05010.00
5.1.30.0070.03010.23
5.1.20.0030.04710.33
5.1.10.0070.05710.05
5.1.00.0030.04310.10
5.0.50.0030.0208.52
5.0.40.0030.0308.44
5.0.30.0000.0608.38
5.0.20.0000.0478.38
5.0.10.0070.0178.38
5.0.00.0070.0278.38
4.4.90.0030.0378.38
4.4.80.0000.0178.38
4.4.70.0070.0238.38
4.4.60.0000.0338.38
4.4.50.0070.0238.38
4.4.40.0000.0308.38
4.4.30.0000.0338.38
4.4.20.0000.0308.38
4.4.10.0030.0178.38
4.4.00.0000.0508.38
4.3.110.0000.0338.38
4.3.100.0030.0238.38
4.3.90.0000.0208.38
4.3.80.0000.0278.38
4.3.70.0070.0108.38
4.3.60.0000.0308.38
4.3.50.0000.0238.38
4.3.40.0000.0308.38
4.3.30.0000.0238.38
4.3.20.0000.0208.38
4.3.10.0030.0138.38
4.3.00.0000.0178.38

preferences:
46.12 ms | 401 KiB | 5 Q