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 parent::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.43
8.3.50.0130.00521.92
8.3.40.0070.00718.84
8.3.30.0110.00718.67
8.3.20.0080.00018.77
8.3.10.0070.00021.21
8.3.00.0070.00019.80
8.2.180.0040.01116.38
8.2.170.0000.01418.84
8.2.160.0070.00722.96
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.38
8.2.110.0100.00022.09
8.2.100.0030.00917.84
8.2.90.0040.00419.17
8.2.80.0000.00719.43
8.2.70.0030.00717.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0070.00021.14
8.2.20.0070.00017.70
8.2.10.0000.01017.75
8.2.00.0070.00317.54
8.1.270.0080.00022.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0140.00020.29
8.1.230.0100.00020.88
8.1.220.0050.00318.77
8.1.210.0000.00818.88
8.1.200.0060.00317.35
8.1.190.0030.00617.53
8.1.180.0050.00518.10
8.1.170.0030.00618.70
8.1.160.0000.00718.96
8.1.150.0080.00018.64
8.1.140.0040.00417.46
8.1.130.0000.00717.74
8.1.120.0030.00317.39
8.1.110.0040.00417.49
8.1.100.0040.00417.52
8.1.90.0050.00317.44
8.1.80.0040.00417.46
8.1.70.0000.00817.50
8.1.60.0000.01017.55
8.1.50.0000.00717.43
8.1.40.0050.00217.50
8.1.30.0000.00817.62
8.1.20.0040.00417.60
8.1.10.0080.00017.59
8.1.00.0040.00417.46
8.0.300.0090.00020.02
8.0.290.0000.00717.13
8.0.280.0040.00418.36
8.0.270.0030.00317.12
8.0.260.0030.00316.73
8.0.250.0040.00416.96
8.0.240.0040.00416.86
8.0.230.0030.00316.94
8.0.220.0040.00416.78
8.0.210.0030.00316.80
8.0.200.0060.00016.86
8.0.190.0000.00717.00
8.0.180.0000.00716.93
8.0.170.0000.00816.86
8.0.160.0070.00316.80
8.0.150.0070.00016.89
8.0.140.0000.00816.85
8.0.130.0050.00013.32
8.0.120.0030.00616.91
8.0.110.0040.00416.72
8.0.100.0070.00016.77
8.0.90.0070.00016.90
8.0.80.0040.01116.89
8.0.70.0000.00716.82
8.0.60.0040.00416.73
8.0.50.0030.00516.88
8.0.30.0120.00716.99
8.0.20.0180.00917.41
8.0.10.0040.00417.08
8.0.00.0130.00516.68
7.4.330.0020.00216.89
7.4.320.0000.00716.50
7.4.300.0000.00616.61
7.4.290.0030.00616.62
7.4.280.0000.00716.63
7.4.270.0030.00316.60
7.4.260.0060.00013.28
7.4.250.0040.00416.57
7.4.240.0090.00016.58
7.4.230.0040.00416.61
7.4.220.0160.00416.50
7.4.210.0070.00916.53
7.4.200.0080.00016.67
7.4.190.0070.00016.48
7.4.160.0100.00716.52
7.4.150.0030.01417.40
7.4.140.0080.01317.86
7.4.130.0120.00616.54
7.4.120.0120.00816.62
7.4.110.0090.00916.41
7.4.100.0030.01416.53
7.4.90.0080.00816.44
7.4.80.0090.00919.39
7.4.70.0200.00416.72
7.4.60.0180.00016.46
7.4.50.0030.00616.61
7.4.40.0030.01422.77
7.4.30.0030.01316.61
7.4.00.0050.01115.01
7.3.330.0000.00613.26
7.3.320.0000.00513.27
7.3.310.0070.00016.34
7.3.300.0070.00016.18
7.3.290.0030.01016.27
7.3.280.0080.00816.30
7.3.270.0090.00917.40
7.3.260.0110.00618.24
7.3.250.0090.00816.32
7.3.240.0090.00616.26
7.3.230.0120.00316.39
7.3.210.0070.01116.36
7.3.200.0130.00619.39
7.3.190.0120.00616.13
7.3.180.0080.00816.24
7.3.170.0070.01016.35
7.3.160.0110.00616.49
7.3.120.0090.00814.99
7.3.110.0100.00714.79
7.3.100.0080.00714.76
7.3.90.0090.00814.76
7.3.80.0030.00814.58
7.3.70.0070.00414.83
7.3.60.0090.00714.86
7.3.50.0090.00714.83
7.3.40.0080.00814.58
7.3.30.0070.00914.56
7.3.20.0070.00816.60
7.3.10.0060.00516.44
7.3.00.0070.00616.54
7.2.330.0100.00716.75
7.2.320.0090.01216.50
7.2.310.0140.01016.74
7.2.300.0110.01116.37
7.2.290.0060.01016.77
7.2.250.0050.01415.05
7.2.240.0110.00815.06
7.2.230.0050.00814.90
7.2.220.0070.00814.94
7.2.210.0080.00514.99
7.2.200.0040.01115.10
7.2.190.0010.01415.10
7.2.180.0040.00615.03
7.2.170.0040.01414.95
7.2.80.0190.00316.34
7.2.60.0030.00916.96
7.2.50.0070.00717.05
7.1.330.0030.01015.59
7.1.320.0030.00715.68
7.1.310.0020.01115.61
7.1.300.0030.00715.75
7.1.290.0090.00515.46
7.1.280.0050.01015.76
7.1.270.0050.01215.63
7.1.260.0050.00415.74
7.1.200.0060.00715.65
7.1.70.0030.00318.08
7.1.60.0080.00318.08
7.1.50.0070.00318.08
7.1.40.0080.00418.08
7.1.30.0000.01018.08
7.1.20.0030.00718.08
7.1.10.0030.00618.08
7.1.00.0040.00418.08
7.0.200.0040.00418.08
7.0.190.0000.00718.08
7.0.180.0030.00618.08
7.0.170.0070.00318.08
7.0.160.0040.00418.08
7.0.150.0030.00618.08
7.0.140.0050.00218.08
7.0.130.0000.00818.08
7.0.120.0030.00718.08
7.0.110.0030.00518.08
7.0.100.0000.00818.08
7.0.90.0000.00818.08
7.0.80.0000.00818.08
7.0.70.0000.00918.08
7.0.60.0000.00718.08
7.0.50.0000.00718.08
7.0.40.0070.00418.08
7.0.30.0060.00318.08
7.0.20.0000.00718.08
7.0.10.0030.00518.08
7.0.00.0040.00418.08
5.6.300.0030.04020.68
5.6.290.0070.03620.84
5.6.280.0030.04320.87
5.6.270.0070.03920.89
5.6.260.0000.04720.97
5.6.250.0030.04420.99
5.6.240.0030.04521.05
5.6.230.0000.04920.90
5.6.220.0070.03720.96
5.6.210.0000.04721.07
5.6.200.0100.03520.98
5.6.190.0030.04020.82
5.6.180.0040.04220.77
5.6.170.0070.04621.03
5.6.160.0000.04420.93
5.6.150.0070.04120.86
5.6.140.0030.04120.73
5.6.130.0070.03720.83
5.6.120.0070.04420.95
5.6.110.0000.04920.81
5.6.100.0090.03820.75
5.6.90.0030.04020.93
5.6.80.0030.07920.21
5.6.70.0090.03520.36
5.6.60.0060.03520.40
5.6.50.0100.03520.37
5.6.40.0030.04420.20
5.6.30.0000.04620.32
5.6.20.0000.04520.17
5.6.10.0070.03720.17
5.6.00.0070.03620.07
5.5.380.0030.04118.08
5.5.370.0000.04718.08
5.5.360.0030.04018.08
5.5.350.0070.05318.08
5.5.340.0070.03618.08
5.5.330.0070.04718.12
5.5.320.0030.04118.09
5.5.310.0170.04018.08
5.5.300.0060.03818.08
5.5.290.0030.04018.12
5.5.280.0030.04418.12
5.5.270.0030.04318.08
5.5.260.0000.04718.12
5.5.250.0000.04218.08
5.5.240.0030.04018.08
5.5.230.0000.04118.08
5.5.220.0030.03818.08
5.5.210.0000.04118.08
5.5.200.0030.04118.08
5.5.190.0040.05318.08
5.5.180.0000.04818.08
5.5.160.0030.03918.08
5.5.150.0160.03518.08
5.5.140.0270.04018.08
5.5.130.0000.04318.08
5.5.120.0030.04018.08
5.5.110.0100.03018.08
5.5.100.0030.04018.08
5.5.90.0030.03718.08
5.5.80.0130.03818.08
5.5.70.0030.03718.08
5.5.60.0000.03918.08
5.5.50.0060.03218.08
5.5.40.0060.03818.08
5.5.30.0100.03318.08
5.5.20.0000.04018.08
5.5.10.0000.04618.08
5.5.00.0090.03718.08
5.4.450.0000.04719.56
5.4.440.0070.04019.39
5.4.430.0000.04519.43
5.4.420.0100.04419.38
5.4.410.0000.04019.13
5.4.400.0030.03918.89
5.4.390.0130.03219.22
5.4.380.0030.04218.87
5.4.370.0110.03219.06
5.4.360.0000.04219.13
5.4.350.0030.03619.07
5.4.340.0040.04219.20
5.4.320.0270.03819.07
5.4.310.0000.04519.20
5.4.300.0030.03819.14
5.4.290.0030.03719.07
5.4.280.0030.03719.07
5.4.270.0030.03919.19
5.4.260.0030.03919.06
5.4.250.0000.04519.15
5.4.240.0030.04019.13
5.4.230.0200.04319.10
5.4.220.0100.04919.06
5.4.210.0030.03819.06
5.4.200.0070.04018.93
5.4.190.0030.04318.98
5.4.180.0030.03718.97
5.4.170.0030.04218.90
5.4.160.0000.04718.96
5.4.150.0000.04418.95
5.4.140.0030.03718.08
5.4.130.0340.03418.08
5.4.120.0030.03918.08
5.4.110.0030.03718.08
5.4.100.0030.03618.08
5.4.90.0070.03418.08
5.4.80.0030.03718.08
5.4.70.0100.03618.08
5.4.60.0030.03518.08
5.4.50.0170.05318.08
5.4.40.0070.03618.08
5.4.30.0030.04118.08
5.4.20.0030.03318.08
5.4.10.0000.03918.08
5.4.00.0000.04118.08
5.3.290.0070.03318.08
5.3.280.0000.04218.08
5.3.270.0000.04218.08
5.3.260.0000.04818.08
5.3.250.0030.04118.08
5.3.240.0030.04018.08
5.3.230.0030.04018.08
5.3.220.0030.03618.08
5.3.210.0030.03918.08
5.3.200.0060.03618.08
5.3.190.0070.03218.08
5.3.180.0030.04018.08
5.3.170.0100.03218.08
5.3.160.0060.03218.08
5.3.150.0000.04218.08
5.3.140.0140.04818.08
5.3.130.0000.03918.08
5.3.120.0000.04318.08
5.3.110.0060.03418.08
5.3.100.0070.04118.08
5.3.90.0100.03018.08
5.3.80.0030.05918.08
5.3.70.0000.03918.08
5.3.60.0000.03818.08
5.3.50.0030.03918.08
5.3.40.0260.02318.08
5.3.30.0030.03518.08
5.3.20.0030.03418.08
5.3.10.0000.03618.08
5.3.00.0030.03318.08
5.2.170.0030.02918.08
5.2.160.0000.03018.08
5.2.150.0030.03218.08
5.2.140.0000.03318.08
5.2.130.0000.03418.08
5.2.120.0000.03018.08
5.2.110.0160.02318.08
5.2.100.0040.02918.08
5.2.90.0030.02918.08
5.2.80.0030.02718.08
5.2.70.0000.03018.08
5.2.60.0070.02318.08
5.2.50.0030.02918.08
5.2.40.0030.02718.08
5.2.30.0070.02718.08
5.2.20.0040.02618.08
5.2.10.0000.03118.08
5.2.00.0090.02418.08
5.1.60.0030.02618.08
5.1.50.0000.02818.08
5.1.40.0040.02218.08
5.1.30.0030.02518.08
5.1.20.0060.03218.08
5.1.10.0130.03018.08
5.1.00.0060.02218.08
5.0.50.0030.04818.08
5.0.40.0030.03218.08
5.0.30.0000.07418.08
5.0.20.0030.01718.08
5.0.10.0000.02318.08
5.0.00.0030.04818.08
4.4.90.0000.01618.08
4.4.80.0040.01418.08
4.4.70.0030.01318.08
4.4.60.0000.01618.08
4.4.50.0000.01918.08
4.4.40.0000.02718.08
4.4.30.0030.01618.08
4.4.20.0030.02418.08
4.4.10.0000.03418.08
4.4.00.0100.02318.08
4.3.110.0000.01618.08
4.3.100.0030.01318.08
4.3.90.0030.01418.08
4.3.80.0030.02818.08
4.3.70.0000.02418.08
4.3.60.0000.01618.08
4.3.50.0040.01418.08
4.3.40.0030.02218.08
4.3.30.0000.01718.08
4.3.20.0000.01718.08
4.3.10.0040.01418.08
4.3.00.0000.01818.08

preferences:
54.3 ms | 400 KiB | 5 Q