3v4l.org

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

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.0180.00316.50
8.3.50.0170.00522.04
8.3.40.0130.00718.68
8.3.30.0110.00419.10
8.3.20.0040.00420.34
8.3.10.0040.00423.73
8.3.00.0080.00020.39
8.2.180.0040.01116.38
8.2.170.0100.00722.96
8.2.160.0070.00722.12
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.28
8.2.110.0100.00719.21
8.2.100.0040.00817.90
8.2.90.0060.00319.21
8.2.80.0000.00817.97
8.2.70.0070.00417.50
8.2.60.0080.00017.80
8.2.50.0030.00518.10
8.2.40.0080.00018.22
8.2.30.0040.00418.13
8.2.20.0040.00417.71
8.2.10.0050.00217.64
8.2.00.0040.00417.62
8.1.280.0110.00825.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00522.61
8.1.230.0040.00817.83
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.57
8.1.160.0030.00622.01
8.1.150.0040.00418.57
8.1.140.0030.00617.41
8.1.130.0030.00317.69
8.1.120.0030.00417.49
8.1.110.0030.00517.42
8.1.100.0000.00717.34
8.1.90.0000.00717.41
8.1.80.0000.00717.39
8.1.70.0030.00317.43
8.1.60.0060.00317.48
8.1.50.0030.00617.55
8.1.40.0050.00317.57
8.1.30.0080.00317.43
8.1.20.0060.00317.61
8.1.10.0040.00417.55
8.1.00.0060.00317.39
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0070.00018.45
8.0.270.0000.00717.27
8.0.260.0030.00316.83
8.0.250.0020.00516.92
8.0.240.0030.00316.87
8.0.230.0070.00016.95
8.0.220.0070.00016.89
8.0.210.0000.00716.88
8.0.200.0030.00316.94
8.0.190.0050.00217.01
8.0.180.0040.00416.90
8.0.170.0060.00316.84
8.0.160.0040.00416.89
8.0.150.0040.00416.72
8.0.140.0000.00816.84
8.0.130.0000.00613.28
8.0.120.0030.00516.78
8.0.110.0000.00716.87
8.0.100.0040.00416.92
8.0.90.0040.00416.91
8.0.80.0100.00616.89
8.0.70.0040.00416.81
8.0.60.0070.00016.73
8.0.50.0070.00016.84
8.0.30.0130.00516.91
8.0.20.0050.01417.40
8.0.10.0030.00516.78
8.0.00.0090.00816.75
7.4.330.0000.00515.00
7.4.320.0060.00016.45
7.4.300.0000.00716.50
7.4.290.0060.00316.54
7.4.280.0030.00616.61
7.4.270.0070.00016.54
7.4.260.0030.00616.61
7.4.250.0040.00416.50
7.4.240.0000.00716.59
7.4.230.0040.00416.63
7.4.220.0060.01616.57
7.4.210.0090.00516.55
7.4.200.0000.00716.46
7.4.190.0080.00016.75
7.4.160.0110.00516.50
7.4.150.0000.01717.40
7.4.140.0100.00717.86
7.4.130.0080.00816.46
7.4.120.0130.00516.59
7.4.110.0150.00416.57
7.4.100.0070.01316.38
7.4.90.0130.00416.36
7.4.80.0150.00316.50
7.4.70.0130.00416.41
7.4.60.0120.01116.53
7.4.50.0040.00416.17
7.4.40.0070.00322.77
7.4.30.0130.00516.54
7.4.00.0030.01314.99
7.3.330.0000.00513.41
7.3.320.0030.00313.34
7.3.310.0000.00716.41
7.3.300.0070.00016.21
7.3.290.0060.00916.33
7.3.280.0060.01216.31
7.3.270.0100.00717.40
7.3.260.0040.01316.27
7.3.250.0130.00716.48
7.3.240.0120.00816.37
7.3.230.0160.00016.39
7.3.210.0110.00616.61
7.3.200.0100.01319.39
7.3.190.0120.00916.25
7.3.180.0080.00816.52
7.3.170.0120.00916.47
7.3.160.0080.00816.46
7.3.120.0090.00914.79
7.3.110.0030.01315.07
7.3.100.0030.00814.76
7.3.90.0080.00414.82
7.3.80.0120.00315.16
7.3.70.0030.01314.62
7.3.60.0000.01214.78
7.3.50.0040.00814.88
7.3.40.0130.00314.79
7.3.30.0030.01014.98
7.3.20.0100.00316.82
7.3.10.0110.00016.47
7.3.00.0030.00816.64
7.2.330.0110.00816.82
7.2.320.0070.01016.52
7.2.310.0060.01116.75
7.2.300.0120.00516.57
7.2.290.0100.00716.50
7.2.250.0000.01715.04
7.2.240.0060.01314.88
7.2.230.0090.00615.30
7.2.220.0070.00715.05
7.2.210.0060.01314.96
7.2.200.0080.00414.92
7.2.190.0110.00415.21
7.2.180.0080.00815.15
7.2.170.0080.00314.99
7.2.130.0040.01216.30
7.2.120.0150.00416.62
7.2.110.0060.00616.77
7.2.100.0040.01116.53
7.2.90.0040.01216.62
7.2.80.0110.00316.63
7.2.70.0100.00716.91
7.2.60.0100.00616.78
7.2.50.0070.00716.31
7.2.40.0060.00616.77
7.2.30.0140.00016.79
7.2.20.0000.01616.47
7.2.10.0030.01416.59
7.2.00.0110.00517.98
7.1.330.0060.00915.89
7.1.320.0060.00615.47
7.1.310.0110.00415.63
7.1.300.0060.00815.38
7.1.290.0040.00815.76
7.1.280.0090.00315.64
7.1.270.0030.01015.72
7.1.260.0060.00915.48
7.1.250.0040.00415.33
7.1.240.0150.00015.62
7.1.230.0060.00315.42
7.1.220.0080.00315.35
7.1.210.0030.00815.48
7.1.200.0110.00715.58
7.1.190.0040.01215.63
7.1.180.0070.00315.52
7.1.170.0180.00015.47
7.1.160.0150.00315.61
7.1.150.0000.01115.45
7.1.140.0030.00615.34
7.1.130.0030.00715.50
7.1.120.0030.01015.77
7.1.110.0000.00815.47
7.1.100.0050.00716.73
7.1.90.0040.00715.57
7.1.80.0100.00615.61
7.1.70.0030.00716.27
7.1.60.0110.00917.53
7.1.50.0070.01016.22
7.1.40.0130.00615.59
7.1.30.0130.00315.72
7.1.20.0040.01115.63
7.1.10.0080.00815.53
7.1.00.0070.03918.98
7.0.330.0000.01515.32
7.0.320.0070.00415.02
7.0.310.0110.00315.34
7.0.300.0030.00615.54
7.0.290.0070.00715.29
7.0.280.0120.00615.35
7.0.270.0070.00715.32
7.0.260.0030.00815.17
7.0.250.0000.01315.38
7.0.240.0100.00315.41
7.0.230.0060.00915.03
7.0.220.0090.00315.48
7.0.210.0060.00615.55
7.0.200.0030.00615.80
7.0.190.0040.00715.32
7.0.180.0040.01115.51
7.0.170.0110.00315.16
7.0.160.0100.00315.43
7.0.150.0030.00715.25
7.0.140.0070.03818.69
7.0.130.0060.00615.05
7.0.120.0000.00815.01
7.0.110.0060.00915.27
7.0.100.0060.00915.07
7.0.90.0040.01115.36
7.0.80.0070.02017.50
7.0.70.0060.02517.66
7.0.60.0020.02517.53
7.0.50.0100.02317.82
7.0.40.0030.02916.55
7.0.30.0080.02416.59
7.0.20.0020.02916.67
7.0.10.0050.02516.63
7.0.00.0050.02816.73
5.6.380.0100.00313.78
5.6.370.0070.00713.93
5.6.360.0070.00713.87
5.6.350.0060.00914.29
5.6.340.0000.01113.80
5.6.330.0090.00613.90
5.6.320.0140.00014.16
5.6.310.0070.00714.12
5.6.300.0090.00314.21
5.6.290.0070.00414.47
5.6.280.0030.04017.54
5.6.270.0110.00014.00
5.6.260.0040.01113.85
5.6.250.0120.00314.14
5.6.240.0110.00414.01
5.6.230.0050.03017.39
5.6.220.0110.02017.34
5.6.210.0000.03017.51
5.6.200.0050.02817.66
5.6.190.0060.02417.56
5.6.180.0060.02517.63
5.6.170.0110.02017.64
5.6.160.0060.02717.41
5.6.150.0050.02717.57
5.6.140.0090.02517.46
5.6.130.0080.02517.49
5.6.120.0080.02517.39
5.6.110.0100.02517.45
5.6.100.0060.02417.62
5.6.90.0060.02817.48
5.6.80.0110.02017.18
5.6.70.0070.02717.18
5.6.60.0050.02617.32
5.6.50.0090.02317.28
5.6.40.0120.02017.33
5.6.30.0100.02517.40
5.6.20.0020.02817.31
5.6.10.0050.02417.07
5.6.00.0030.02817.29
5.5.380.0000.01011.18
5.5.370.0000.02615.81
5.5.360.0040.02315.80
5.5.350.0040.02215.77
5.5.340.0030.02716.03
5.5.330.0070.02416.05
5.5.320.0040.02716.03
5.5.310.0060.02316.11
5.5.300.0020.03115.98
5.5.290.0030.02616.04
5.5.280.0050.02716.03
5.5.270.0030.02916.03
5.5.260.0000.03316.05
5.5.250.0100.02015.87
5.5.240.0020.02515.67
5.5.230.0070.02315.74
5.5.220.0050.02715.67
5.5.210.0040.02615.74
5.5.200.0040.02315.72
5.5.190.0030.02915.71
5.5.180.0020.03015.70
5.5.170.0050.00811.18
5.5.160.0120.02115.68
5.5.150.0020.02515.59
5.5.140.0070.02215.71
5.5.130.0050.02515.73
5.5.120.0080.02315.63
5.5.110.0050.02515.68
5.5.100.0080.02015.60
5.5.90.0070.02315.58
5.5.80.0040.02215.68
5.5.70.0080.02115.64
5.5.60.0030.02515.59
5.5.50.0100.02415.67
5.5.40.0100.01915.62
5.5.30.0070.02015.66
5.5.20.0050.02515.62
5.5.10.0030.02615.65
5.5.00.0100.02315.57
5.4.450.0100.02215.33
5.4.440.0070.02315.27
5.4.430.0030.02315.27
5.4.420.0040.02515.22
5.4.410.0020.02915.25
5.4.400.0070.02315.17
5.4.390.0060.02315.01
5.4.380.0090.02615.19
5.4.370.0000.02315.15
5.4.360.0040.02715.15
5.4.350.0030.02615.06
5.4.340.0080.02115.06
5.4.330.0000.00611.18
5.4.320.0020.02915.19
5.4.310.0050.02315.20
5.4.300.0000.02715.15
5.4.290.0050.02315.06
5.4.280.0030.02715.17
5.4.270.0050.02315.04
5.4.260.0060.02115.21
5.4.250.0020.02515.02
5.4.240.0020.02815.17
5.4.230.0050.02415.02
5.4.220.0070.02215.14
5.4.210.0030.02515.20
5.4.200.0030.02315.15
5.4.190.0020.02715.16
5.4.180.0020.02715.13
5.4.170.0090.01915.01
5.4.160.0070.02015.14
5.4.150.0020.02215.00
5.4.140.0030.02713.85
5.4.130.0050.02013.83
5.4.120.0050.02413.82
5.4.110.0090.02113.87
5.4.100.0090.02013.83
5.4.90.0000.02413.85
5.4.80.0070.02013.86
5.4.70.0090.01613.79
5.4.60.0060.02113.82
5.4.50.0060.02313.81
5.4.40.0030.02013.80
5.4.30.0030.02313.74
5.4.20.0080.02213.81
5.4.10.0050.02413.75
5.4.00.0120.01813.52
5.3.290.0050.02512.99
5.3.280.0060.02312.92
5.3.270.0090.01912.88
5.3.260.0070.02012.94
5.3.250.0020.02212.89
5.3.240.0030.02112.92
5.3.230.0050.02212.87
5.3.220.0030.02512.84
5.3.210.0060.02312.86
5.3.200.0080.01812.89
5.3.190.0100.01712.91
5.3.180.0040.02512.95
5.3.170.0050.02612.86
5.3.160.0100.02012.87
5.3.150.0090.02112.94
5.3.140.0050.02012.91
5.3.130.0050.02312.86
5.3.120.0070.02312.84
5.3.110.0060.02112.91
5.3.100.0090.02012.59
5.3.90.0030.02012.61
5.3.80.0080.02512.63
5.3.70.0050.02312.67
5.3.60.0080.01812.58
5.3.50.0020.02312.53
5.3.40.0100.01512.57
5.3.30.0020.02612.58
5.3.20.0070.01812.40
5.3.10.0030.01812.48
5.3.00.0050.02212.40
5.2.170.0030.01512.40
5.2.160.0030.01812.40
5.2.150.0030.01712.40
5.2.140.0010.01612.40
5.2.130.0060.01412.40
5.2.120.0050.01712.40
5.2.110.0030.01812.40
5.2.100.0010.01612.40
5.2.90.0020.02012.40
5.2.80.0050.01812.40
5.2.70.0030.01612.40
5.2.60.0020.01712.40
5.2.50.0030.02012.40
5.2.40.0020.01512.40
5.2.30.0000.02512.40
5.2.20.0040.01412.40
5.2.10.0020.01512.40
5.2.00.0050.01612.40
5.1.60.0040.01212.40
5.1.50.0040.01512.40
5.1.40.0020.01612.40
5.1.30.0030.01812.40
5.1.20.0020.01812.40
5.1.10.0050.01412.40
5.1.00.0010.01612.40
5.0.50.0040.01212.40
5.0.40.0020.01212.40
5.0.30.0020.02212.40
5.0.20.0050.01012.40
5.0.10.0000.01512.40
5.0.00.0030.01812.40
4.4.90.0020.01012.40
4.4.80.0020.01012.40
4.4.70.0020.01012.40
4.4.60.0000.01212.40
4.4.50.0030.00512.40
4.4.40.0030.01212.40
4.4.30.0020.01012.40
4.4.20.0000.01212.40
4.4.10.0030.01012.40
4.4.00.0030.01312.40
4.3.110.0000.01312.40
4.3.100.0000.01212.40
4.3.90.0000.01212.40
4.3.80.0000.01712.40
4.3.70.0000.01112.40
4.3.60.0000.01112.40
4.3.50.0030.00812.40
4.3.40.0020.01512.40
4.3.30.0050.00712.40
4.3.20.0000.01112.40
4.3.10.0000.01112.40
4.3.00.0000.01212.40

preferences:
46.1 ms | 401 KiB | 5 Q