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 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.60.0150.00618.68
8.3.50.0180.00221.92
8.3.40.0090.00618.71
8.3.30.0040.01418.66
8.3.20.0040.00418.85
8.3.10.0040.00421.22
8.3.00.0040.00419.68
8.2.180.0120.00616.63
8.2.170.0070.00718.97
8.2.160.0100.00322.96
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.01117.63
8.2.110.0080.00322.30
8.2.100.0050.00517.91
8.2.90.0000.00719.05
8.2.80.0000.00719.28
8.2.70.0110.00017.75
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0050.00318.16
8.2.30.0020.00521.32
8.2.20.0040.00417.66
8.2.10.0000.00817.82
8.2.00.0060.00317.80
8.1.280.0110.00425.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00822.30
8.1.230.0040.00720.64
8.1.220.0040.00418.77
8.1.210.0040.00418.80
8.1.200.0040.00417.36
8.1.190.0020.00517.41
8.1.180.0000.00818.10
8.1.170.0050.00318.65
8.1.160.0040.00418.89
8.1.150.0040.00418.70
8.1.140.0000.00917.37
8.1.130.0030.00317.83
8.1.120.0030.00317.52
8.1.110.0040.00417.38
8.1.100.0040.00417.39
8.1.90.0080.00017.39
8.1.80.0000.00717.41
8.1.70.0070.00017.40
8.1.60.0070.00417.61
8.1.50.0000.00817.39
8.1.40.0030.00617.43
8.1.30.0000.00717.61
8.1.20.0000.00917.66
8.1.10.0040.00417.50
8.1.00.0040.00417.41
8.0.300.0000.01119.67
8.0.290.0040.00417.18
8.0.280.0040.00418.38
8.0.270.0000.00717.17
8.0.260.0000.00716.79
8.0.250.0040.00417.03
8.0.240.0040.00417.04
8.0.230.0000.00717.00
8.0.220.0030.00316.97
8.0.210.0070.00016.89
8.0.200.0030.00316.95
8.0.190.0000.00716.95
8.0.180.0070.00016.98
8.0.170.0000.00817.02
8.0.160.0060.00617.05
8.0.150.0070.00016.86
8.0.140.0040.00416.96
8.0.130.0030.00313.38
8.0.120.0060.00316.98
8.0.110.0040.00316.84
8.0.100.0000.00716.93
8.0.90.0070.00016.79
8.0.80.0080.00816.90
8.0.70.0040.00416.99
8.0.60.0040.00416.86
8.0.50.0040.00416.80
8.0.30.0080.01117.19
8.0.20.0130.01117.40
8.0.10.0000.00716.96
8.0.00.0090.00916.78
7.4.330.0030.00316.76
7.4.320.0000.00616.51
7.4.300.0030.00316.57
7.4.290.0000.00716.59
7.4.280.0000.00716.49
7.4.270.0060.00016.50
7.4.260.0000.00613.18
7.4.250.0040.00416.52
7.4.240.0030.00316.65
7.4.230.0000.00716.42
7.4.220.0190.00616.56
7.4.210.0080.00916.55
7.4.200.0000.00716.51
7.4.190.0040.00416.50
7.4.160.0060.01016.57
7.4.150.0120.01217.40
7.4.140.0140.00617.86
7.4.130.0140.00516.54
7.4.120.0090.01016.63
7.4.110.0160.00616.44
7.4.100.0100.01016.59
7.4.90.0110.01116.55
7.4.80.0070.01019.39
7.4.70.0070.01716.39
7.4.60.0040.01416.62
7.4.50.0000.00816.41
7.4.40.0130.00322.77
7.4.30.0090.00916.61
7.4.00.0070.00714.86
7.3.330.0000.00513.29
7.3.320.0000.00613.36
7.3.310.0070.00016.22
7.3.300.0060.00016.25
7.3.290.0130.00316.33
7.3.280.0080.00816.37
7.3.270.0090.01617.40
7.3.260.0050.01418.24
7.3.250.0090.00916.36
7.3.240.0060.01016.35
7.3.230.0060.01016.42
7.3.210.0100.01016.41
7.3.200.0130.00319.39
7.3.190.0030.01416.43
7.3.180.0100.00616.37
7.3.170.0060.01016.39
7.3.160.0060.00916.29
7.3.120.0000.01814.84
7.3.00.0100.00316.48
7.2.330.0080.00816.70
7.2.320.0130.00616.28
7.2.310.0040.01416.70
7.2.300.0000.01716.64
7.2.290.0070.00716.65
7.2.130.0040.01116.67
7.2.120.0060.00316.82
7.2.110.0030.00616.90
7.2.100.0030.00916.74
7.2.90.0030.00716.73
7.2.80.0090.00916.79
7.2.70.0060.00316.69
7.2.60.0030.01116.55
7.2.50.0090.00016.73
7.2.40.0070.00417.00
7.2.30.0000.00916.96
7.2.20.0040.00716.82
7.2.10.0140.00416.34
7.2.00.0020.00817.84
7.1.250.0040.01215.61
7.1.240.0030.00715.75
7.1.230.0090.00015.78
7.1.220.0030.00715.53
7.1.210.0070.00715.70
7.1.200.0070.00715.56
7.1.190.0030.00715.64
7.1.180.0100.00715.59
7.1.170.0110.00415.71
7.1.160.0130.00315.86
7.1.150.0060.00315.65
7.1.140.0030.00915.41
7.1.130.0040.00715.30
7.1.120.0070.00715.54
7.1.110.0090.00015.55
7.1.100.0060.00616.93
7.1.90.0130.00715.73
7.1.80.0060.00915.64
7.1.70.0020.01016.47
7.1.60.0090.00817.49
7.1.50.0050.01016.36
7.1.40.0030.00815.78
7.1.30.0040.01115.30
7.1.20.0140.00015.53
7.1.10.0030.00715.34
7.1.00.0080.03219.18
7.0.330.0040.01115.02
7.0.320.0130.00015.00
7.0.310.0050.00515.24
7.0.300.0070.00415.21
7.0.290.0030.00615.26
7.0.280.0060.00615.39
7.0.270.0100.00314.91
7.0.260.0070.00715.29
7.0.250.0000.01015.17
7.0.240.0030.00715.33
7.0.230.0070.00415.33
7.0.220.0040.00715.34
7.0.210.0000.01115.22
7.0.200.0060.01015.92
7.0.190.0070.00315.14
7.0.180.0030.00815.42
7.0.170.0040.00415.05
7.0.160.0060.00615.32
7.0.150.0130.00015.39
7.0.140.0030.04218.68
7.0.130.0000.00915.34
7.0.120.0080.00415.39
7.0.110.0080.00415.30
7.0.100.0170.03017.71
7.0.90.0070.03017.72
7.0.80.0070.02717.57
7.0.70.0070.04017.71
7.0.60.0100.04317.64
7.0.50.0090.02917.71
7.0.40.0040.04416.81
7.0.30.0030.04516.68
7.0.20.0100.02316.68
7.0.10.0080.03316.73
7.0.00.0100.04716.78
5.6.380.0070.01014.44
5.6.370.0030.01013.89
5.6.360.0080.00014.43
5.6.350.0070.00714.34
5.6.340.0000.01114.19
5.6.330.0050.00514.04
5.6.320.0060.00614.14
5.6.310.0070.00314.32
5.6.300.0030.00913.80
5.6.290.0070.00314.09
5.6.280.0050.04017.36
5.6.270.0030.00914.27
5.6.260.0040.00814.41
5.6.250.0080.03317.43
5.6.240.0010.03017.46
5.6.230.0050.03017.33
5.6.220.0040.05317.58
5.6.210.0020.05017.23
5.6.200.0110.03517.55
5.6.190.0120.02517.69
5.6.180.0030.05017.49
5.6.170.0030.03517.60
5.6.160.0100.03017.54
5.6.150.0030.02417.70
5.6.140.0030.04717.66
5.6.130.0030.04217.57
5.6.120.0030.04717.66
5.6.110.0050.04217.60
5.6.100.0070.04717.55
5.6.90.0080.02617.38
5.6.80.0050.02517.30
5.6.70.0110.03017.37
5.6.60.0030.02517.33
5.6.50.0080.03517.23
5.6.40.0090.03017.26
5.6.30.0040.03617.25
5.6.20.0090.03217.32
5.6.10.0120.03517.23
5.6.00.0090.04317.29
5.5.380.0030.03715.79
5.5.370.0050.03915.67
5.5.360.0080.04215.79
5.5.350.0180.01515.80
5.5.340.0110.02915.95
5.5.330.0020.02915.82
5.5.320.0060.04615.82
5.5.310.0000.04615.90
5.5.300.0030.03315.78
5.5.290.0100.03015.96
5.5.280.0000.03015.76
5.5.270.0080.03716.04
5.5.260.0070.03015.88
5.5.250.0070.04015.69
5.5.240.0050.03915.62
5.5.230.0050.04215.56
5.5.220.0050.04415.66
5.5.210.0040.04115.55
5.5.200.0070.02315.29
5.5.190.0070.03815.51
5.5.180.0050.03015.47
5.5.170.0070.00010.95
5.5.160.0040.02415.52
5.5.150.0100.03215.61
5.5.140.0100.04315.65
5.5.130.0030.02715.52
5.5.120.0100.02015.50
5.5.110.0090.04015.69
5.5.100.0030.04515.41
5.5.90.0080.02315.69
5.5.80.0100.03815.63
5.5.70.0050.04215.49
5.5.60.0120.01815.39
5.5.50.0060.02615.44
5.5.40.0000.02815.47
5.5.30.0090.03715.61
5.5.20.0100.02215.52
5.5.10.0070.03015.55
5.5.00.0020.03115.50
5.4.450.0070.04115.24
5.4.440.0080.02414.92
5.4.430.0070.04015.04
5.4.420.0030.03315.07
5.4.410.0080.03114.93
5.4.400.0040.02214.71
5.4.390.0050.03814.97
5.4.380.0050.02015.02
5.4.370.0050.02415.07
5.4.360.0050.03715.04
5.4.350.0020.02715.04
5.4.340.0090.03815.06
5.4.330.0030.00711.04
5.4.320.0050.03314.97
5.4.310.0050.04015.24
5.4.300.0070.03814.92
5.4.290.0130.02615.19
5.4.280.0100.03315.07
5.4.270.0000.02814.99
5.4.260.0060.03514.98
5.4.250.0050.03714.98
5.4.240.0030.03514.95
5.4.230.0030.02814.87
5.4.220.0020.04514.78
5.4.210.0050.02314.91
5.4.200.0060.03314.83
5.4.190.0050.02614.95
5.4.180.0030.03714.87
5.4.170.0060.03615.04
5.4.160.0060.03715.02
5.4.150.0060.03915.02
5.4.140.0030.03513.67
5.4.130.0050.03513.70
5.4.120.0030.04013.77
5.4.110.0070.03513.58
5.4.100.0070.01813.49
5.4.90.0050.03713.70
5.4.80.0070.02113.63
5.4.70.0090.03113.70
5.4.60.0050.03113.64
5.4.50.0080.02913.59
5.4.40.0080.02613.66
5.4.30.0090.03113.65
5.4.20.0040.03713.64
5.4.10.0030.02313.59
5.4.00.0030.03813.46
5.3.290.0040.04312.71
5.3.280.0030.04212.62
5.3.270.0090.02512.63
5.3.260.0030.04512.70
5.3.250.0080.04012.50
5.3.240.0050.04312.55
5.3.230.0070.02012.42
5.3.220.0050.04012.47
5.3.210.0070.03812.55
5.3.200.0120.01812.54
5.3.190.0030.04212.49
5.3.180.0080.03712.57
5.3.170.0040.03012.57
5.3.160.0050.03912.64
5.3.150.0080.04112.67
5.3.140.0050.03812.40
5.3.130.0050.03012.58
5.3.120.0040.02112.60
5.3.110.0100.03212.56
5.3.100.0050.04212.35
5.3.90.0060.02212.25
5.3.80.0100.03312.21
5.3.70.0070.02712.31
5.3.60.0080.03812.24
5.3.50.0060.03512.21
5.3.40.0050.03812.07
5.3.30.0060.03712.25
5.3.20.0030.02712.15
5.3.10.0090.03511.91
5.3.00.0070.03711.97
5.2.170.0070.03011.27
5.2.160.0050.03411.27
5.2.150.0040.02911.27
5.2.140.0030.03111.27
5.2.130.0090.03011.27
5.2.120.0070.02811.27
5.2.110.0030.03411.27
5.2.100.0050.03011.27
5.2.90.0070.01711.27
5.2.80.0020.02711.27
5.2.70.0050.03311.27
5.2.60.0030.02311.27
5.2.50.0090.01511.27
5.2.40.0050.01511.27
5.2.30.0020.03211.27
5.2.20.0030.01611.27
5.2.10.0040.02311.27
5.2.00.0060.03011.27
5.1.60.0030.01511.27
5.1.50.0000.03111.27
5.1.40.0030.02711.27
5.1.30.0020.03111.27
5.1.20.0050.02511.27
5.1.10.0020.01711.27
5.1.00.0030.01811.27
5.0.50.0030.02011.27
5.0.40.0040.01811.27
5.0.30.0040.02311.27
5.0.20.0040.01211.27
5.0.10.0070.01811.27
5.0.00.0050.02111.27
4.4.90.0020.02011.27
4.4.80.0010.01111.27
4.4.70.0000.01911.27
4.4.60.0030.01611.27
4.4.50.0000.02211.27
4.4.40.0020.01711.27
4.4.30.0010.02311.27
4.4.20.0040.00811.27
4.4.10.0030.02011.27
4.4.00.0000.02511.27
4.3.110.0020.01211.27
4.3.100.0030.01311.27
4.3.90.0020.01911.27
4.3.80.0040.01711.27
4.3.70.0020.01011.27
4.3.60.0040.00811.27
4.3.50.0020.01911.27
4.3.40.0000.02211.27
4.3.30.0000.01911.27
4.3.20.0030.01211.27
4.3.10.0030.01811.27
4.3.00.0000.01611.27

preferences:
51.73 ms | 401 KiB | 5 Q