3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Math { const pi = 3.14; } class CircleMath extends Math { public static function calculateArea($radio) { return self::pi * pow($radio, 2); } } $radio = 5; echo sprintf('El área del circulo con radio de longitud %s es: %s', $radio, CircleMath::calculateArea($radio)); ?>

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.70.0130.00316.58
8.3.60.0100.00718.29
8.3.50.0090.01122.05
8.3.40.0110.00418.76
8.3.30.0120.00320.56
8.3.20.0090.00018.78
8.3.10.0000.00821.13
8.3.00.0040.00419.79
8.2.180.0060.00918.48
8.2.170.0090.00922.96
8.2.160.0120.00320.53
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00420.94
8.2.110.0030.00622.22
8.2.100.0040.00817.91
8.2.90.0040.00419.22
8.2.80.0040.00419.34
8.2.70.0100.00217.63
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0000.00818.28
8.2.30.0000.00719.43
8.2.20.0000.00717.57
8.2.10.0040.00417.61
8.2.00.0030.00617.56
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0110.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00820.81
8.1.230.0070.00420.88
8.1.220.0080.00018.77
8.1.210.0060.00318.87
8.1.200.0090.00017.13
8.1.190.0080.00017.30
8.1.180.0050.00318.10
8.1.170.0050.00318.49
8.1.160.0040.00418.85
8.1.150.0040.00418.63
8.1.140.0050.00217.39
8.1.130.0000.00717.88
8.1.120.0030.00517.35
8.1.110.0000.00817.44
8.1.100.0040.00417.33
8.1.90.0040.00417.51
8.1.80.0000.00717.39
8.1.70.0070.00017.46
8.1.60.0040.00417.57
8.1.50.0000.00717.36
8.1.40.0000.00717.56
8.1.30.0040.00417.65
8.1.20.0040.00417.55
8.1.10.0000.00717.57
8.1.00.0000.00717.52
8.0.300.0000.00919.89
8.0.290.0020.00517.18
8.0.280.0030.00318.45
8.0.270.0080.00017.30
8.0.260.0000.00616.70
8.0.250.0000.00716.96
8.0.240.0030.00516.83
8.0.230.0070.00016.85
8.0.220.0040.00416.90
8.0.210.0040.00416.88
8.0.200.0030.00316.88
8.0.190.0070.00016.87
8.0.180.0030.00316.92
8.0.170.0080.00016.89
8.0.160.0030.00716.80
8.0.150.0050.00216.73
8.0.140.0030.00516.86
8.0.130.0030.00313.29
8.0.120.0090.00016.91
8.0.110.0070.00016.95
8.0.100.0040.00416.85
8.0.90.0000.00716.96
8.0.80.0060.00916.80
8.0.70.0040.00416.82
8.0.60.0070.00016.77
8.0.50.0000.00716.85
8.0.30.0140.00416.95
8.0.20.0100.01017.40
8.0.10.0040.00417.06
8.0.00.0060.01316.75
7.4.330.0020.00216.84
7.4.320.0040.00416.37
7.4.300.0030.00316.60
7.4.290.0080.00016.56
7.4.280.0040.00416.59
7.4.270.0050.00316.45
7.4.260.0030.00313.22
7.4.250.0080.00016.46
7.4.240.0000.00716.50
7.4.230.0000.00716.63
7.4.220.0100.01116.42
7.4.210.0080.00616.56
7.4.200.0070.00016.48
7.4.190.0040.00416.64
7.4.160.0150.00516.63
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0040.01216.37
7.4.120.0110.00616.38
7.4.110.0090.00916.47
7.4.100.0120.00616.48
7.4.90.0030.01316.51
7.4.80.0030.01419.39
7.4.70.0100.00716.54
7.4.60.0100.01016.65
7.4.50.0000.00516.61
7.4.40.0080.00822.77
7.4.30.0140.00916.34
7.4.00.0100.00314.75
7.3.330.0050.00013.24
7.3.320.0030.00313.33
7.3.310.0000.00716.41
7.3.300.0030.00316.32
7.3.290.0070.00716.35
7.3.280.0100.00716.27
7.3.270.0130.01317.40
7.3.260.0080.01318.24
7.3.250.0110.00616.26
7.3.240.0130.00316.30
7.3.230.0070.00916.39
7.3.210.0090.00916.35
7.3.200.0150.00319.39
7.3.190.0100.00716.64
7.3.180.0090.00616.19
7.3.170.0100.00616.27
7.3.160.0060.00916.31
7.3.120.0060.00614.80
7.3.110.0060.01014.75
7.3.100.0060.00914.89
7.3.90.0040.01114.59
7.3.80.0000.00914.53
7.3.70.0030.00714.53
7.3.60.0030.01014.94
7.3.50.0080.00414.47
7.3.40.0120.00314.51
7.3.30.0090.00614.70
7.3.20.0070.00716.63
7.3.10.0090.00516.58
7.3.00.0040.00816.38
7.2.330.0150.00416.77
7.2.320.0090.00916.54
7.2.310.0090.00916.48
7.2.300.0100.00716.55
7.2.290.0060.00916.54
7.2.240.0040.00714.78
7.2.230.0030.01415.07
7.2.220.0110.00314.94
7.2.210.0070.00715.09
7.2.200.0030.00914.88
7.2.190.0040.00814.76
7.2.180.0090.00614.90
7.2.170.0030.00615.04
7.2.160.0060.01014.73
7.2.150.0090.00616.85
7.2.140.0070.00716.69
7.2.130.0070.00416.78
7.2.120.0050.00516.86
7.2.110.0020.01016.84
7.2.100.0050.00516.83
7.2.90.0070.00417.02
7.2.80.0080.00316.96
7.2.70.0070.00617.06
7.2.60.0070.00516.87
7.2.50.0030.01116.79
7.2.40.0060.00917.10
7.2.30.0070.00516.87
7.2.20.0050.00716.93
7.2.10.0090.00316.86
7.2.00.0040.00917.68
7.1.330.0000.01415.73
7.1.320.0000.01515.50
7.1.310.0030.00915.84
7.1.300.0090.00615.78
7.1.290.0060.00615.63
7.1.280.0060.00615.77
7.1.270.0100.00015.91
7.1.260.0090.00615.67
7.1.250.0020.00915.55
7.1.200.0030.01015.74
7.1.70.0030.00717.53
7.1.60.0070.00717.53
7.1.50.0110.00417.53
7.1.40.0100.00317.53
7.1.30.0000.01617.53
7.1.20.0080.00817.53
7.1.10.0030.01017.53
7.1.00.0110.00417.53
7.0.200.0110.00317.53
7.0.190.0060.00617.53
7.0.180.0110.00617.53
7.0.170.0110.00517.53
7.0.160.0090.00517.53
7.0.150.0090.00917.53
7.0.140.0070.00717.53
7.0.130.0060.00817.53
7.0.120.0140.00517.53
7.0.110.0110.00617.53
7.0.100.0060.00617.53
7.0.90.0040.00817.53
7.0.80.0120.00017.53
7.0.70.0060.00617.53
7.0.60.0040.00817.53
7.0.50.0100.00317.53
7.0.40.0100.00317.53
7.0.30.0070.00717.53
7.0.20.0130.00017.53
7.0.10.0080.00817.53
7.0.00.0090.00517.53
5.6.300.0070.04420.89
5.6.290.0200.07320.89
5.6.280.0040.04421.02
5.6.270.0130.04120.84
5.6.260.0030.04721.03
5.6.250.0130.03521.05
5.6.240.0060.04420.90
5.6.230.0120.03720.98
5.6.220.0030.04520.79
5.6.210.0000.04621.05
5.6.200.0000.05121.05
5.6.190.0060.04120.83
5.6.180.0030.04920.86
5.6.170.0040.04320.83
5.6.160.0130.06021.05
5.6.150.0000.05020.73
5.6.140.0100.04820.82
5.6.130.0160.03120.98
5.6.120.0130.05720.86
5.6.110.0040.07520.82
5.6.100.0040.04620.92
5.6.90.0090.04520.96
5.6.80.0030.04520.16
5.6.70.0100.04420.18
5.6.60.0030.08220.30
5.6.50.0130.04020.15
5.6.40.0110.03620.31
5.6.30.0090.04320.34
5.6.20.0040.05020.34
5.6.10.0160.03520.09
5.6.00.0030.04820.38
5.5.380.0070.06917.54
5.5.370.0000.04317.53
5.5.360.0030.07017.53
5.5.350.0060.04017.53
5.5.340.0070.04418.09
5.5.330.0030.04318.18
5.5.320.0030.05018.13
5.5.310.0030.04518.01
5.5.300.0060.03817.70
5.5.290.0000.06317.84
5.5.280.0070.03817.70
5.5.270.0070.04218.08
5.5.260.0000.07018.07
5.5.250.0040.04217.85
5.5.240.0000.04417.53
5.5.230.0000.04117.53
5.5.220.0000.04017.54
5.5.210.0030.04017.55
5.5.200.0030.04117.53
5.5.190.0000.04117.53
5.5.180.0000.04117.53
5.5.160.0000.04717.53
5.5.150.0130.03217.53
5.5.140.0060.04817.53
5.5.130.0070.03717.53
5.5.120.0070.03717.53
5.5.110.0000.04617.53
5.5.100.0060.03417.53
5.5.90.0030.03917.53
5.5.80.0000.04217.53
5.5.70.0000.04417.53
5.5.60.0040.03717.53
5.5.50.0080.03117.53
5.5.40.0300.02417.53
5.5.30.0030.04417.53
5.5.20.0060.03517.53
5.5.10.0030.04717.53
5.5.00.0000.04417.53
5.4.450.0040.04219.47
5.4.440.0030.05619.48
5.4.430.0070.03719.40
5.4.420.0000.04319.47
5.4.410.0000.05319.31
5.4.400.0000.04319.09
5.4.390.0000.04219.05
5.4.380.0030.03618.95
5.4.370.0070.03918.89
5.4.360.0130.08019.05
5.4.350.0030.04118.98
5.4.340.0100.03619.14
5.4.320.0070.04119.15
5.4.310.0060.03719.20
5.4.300.0090.03319.05
5.4.290.0100.03118.97
5.4.280.0030.04918.97
5.4.270.0130.03319.15
5.4.260.0060.03919.12
5.4.250.0070.04418.88
5.4.240.0100.03719.22
5.4.230.0070.03819.19
5.4.220.0030.04219.05
5.4.210.0030.03818.87
5.4.200.0250.03218.91
5.4.190.0270.04018.93
5.4.180.0000.04519.09
5.4.170.0000.04019.04
5.4.160.0030.04119.03
5.4.150.0070.03419.07
5.4.140.0070.03617.53
5.4.130.0090.03117.53
5.4.120.0030.03517.53
5.4.110.0000.04217.53
5.4.100.0060.03317.53
5.4.90.0030.03817.53
5.4.80.0000.04217.53
5.4.70.0030.03717.53
5.4.60.0060.03617.53
5.4.50.0060.03517.53
5.4.40.0000.04317.53
5.4.30.0030.03417.53
5.4.20.0000.04417.53
5.4.10.0140.03117.53
5.4.00.0030.03717.53
5.3.290.0000.04417.53
5.3.280.0000.06817.53
5.3.270.0070.04117.53
5.3.260.0000.04517.53
5.3.250.0060.03217.53
5.3.240.0030.03517.53
5.3.230.0070.03717.53
5.3.220.0060.03617.53
5.3.210.0060.03817.53
5.3.200.0030.03917.53
5.3.190.0000.04517.53
5.3.180.0000.04417.53
5.3.170.0000.04517.53
5.3.160.0030.03817.53
5.3.150.0410.04417.53
5.3.140.0040.03617.53
5.3.130.0030.03717.53
5.3.120.0000.04317.53
5.3.110.0060.03717.53
5.3.100.0000.03717.53
5.3.90.0030.03517.53
5.3.80.0070.03017.53
5.3.70.0030.03517.53
5.3.60.0030.03717.53
5.3.50.0030.03917.53
5.3.40.0000.04017.53
5.3.30.0060.03417.53
5.3.20.0030.03317.53
5.3.10.0030.03817.53
5.3.00.0060.03117.53
5.2.170.0060.02917.53
5.2.160.0030.03117.53
5.2.150.0040.03217.53
5.2.140.0030.03117.53
5.2.130.0000.03117.53
5.2.120.0040.02917.53
5.2.110.0000.03217.53
5.2.100.0030.03417.53
5.2.90.0030.03717.53
5.2.80.0030.03117.53
5.2.70.0040.02817.53
5.2.60.0000.03117.53
5.2.50.0000.03617.53
5.2.40.0070.02717.53
5.2.30.0000.03117.53
5.2.20.0030.02717.53
5.2.10.0030.02817.53
5.2.00.0000.03317.53
5.1.60.0090.02217.53
5.1.50.0000.02817.53
5.1.40.0060.02217.53
5.1.30.0040.02617.53
5.1.20.0000.03217.53
5.1.10.0030.02517.53
5.1.00.0040.02517.53
5.0.50.0000.02617.53
5.0.40.0070.03717.53
5.0.30.0060.02617.53
5.0.20.0000.02217.53
5.0.10.0030.01817.53
5.0.00.0000.03517.53
4.4.90.0000.01717.53
4.4.80.0000.01817.53
4.4.70.0000.01817.53
4.4.60.0040.01517.53
4.4.50.0000.01717.53
4.4.40.0030.02317.53
4.4.30.0060.01117.53
4.4.20.0030.01417.53
4.4.10.0030.01317.53
4.4.00.0030.02417.53
4.3.110.0030.01317.53
4.3.100.0000.01717.53
4.3.90.0060.01217.53
4.3.80.0070.02117.53
4.3.70.0000.01617.53
4.3.60.0030.01417.53
4.3.50.0040.02617.53
4.3.40.0000.02817.53
4.3.30.0000.01917.53
4.3.20.0000.01717.53
4.3.10.0030.01617.53
4.3.00.0000.01717.53

preferences:
61.55 ms | 401 KiB | 5 Q