3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public static function describe() { static $description = null; if ($description === null) { $description = "I am a " . static::getName() . "\n"; } return $description; } } class Car extends Base { protected static function getName() { return 'car'; } public static function describe() { return 'Vroom! ' . parent::describe(); } } class Peugot extends Car { protected static function getName() { return 'peugot'; } } class Renault extends Car { protected static function getName() { return 'renault'; } } $car = new Car; $peugot = new Peugot; $renault = new Renault; echo $car::describe(); echo $peugot::describe(); echo $renault::describe();

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.40.0050.01018.88
8.3.30.0040.01118.98
8.3.20.0070.00020.39
8.3.10.0050.00321.72
8.3.00.0040.00419.25
8.2.170.0140.00322.96
8.2.160.0100.00320.39
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00319.67
8.2.110.0060.00319.31
8.2.100.0040.00817.50
8.2.90.0000.00819.13
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0030.00617.79
8.2.50.0030.00618.07
8.2.40.0050.00319.88
8.2.30.0030.00618.07
8.2.20.0070.00017.70
8.2.10.0000.00717.95
8.2.00.0050.00317.77
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.19
8.1.230.0030.00917.66
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0050.00318.56
8.1.160.0030.00522.03
8.1.150.0040.00418.86
8.1.140.0030.00517.46
8.1.130.0000.00717.78
8.1.120.0040.00417.47
8.1.110.0040.00417.51
8.1.100.0000.00817.37
8.1.90.0040.00417.54
8.1.80.0000.00717.39
8.1.70.0030.00317.51
8.1.60.0030.00617.58
8.1.50.0000.00917.55
8.1.40.0040.00417.35
8.1.30.0070.00317.69
8.1.20.0040.00417.63
8.1.10.0000.00817.48
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.36
8.0.270.0030.00317.14
8.0.260.0000.00717.33
8.0.250.0040.00416.88
8.0.240.0030.00316.99
8.0.230.0000.00716.96
8.0.220.0000.00816.84
8.0.210.0070.00016.79
8.0.200.0040.00416.84
8.0.190.0000.00716.92
8.0.180.0030.00316.91
8.0.170.0050.00316.83
8.0.160.0070.00016.94
8.0.150.0000.00716.74
8.0.140.0040.00416.76
8.0.130.0000.00613.33
8.0.120.0040.00416.88
8.0.110.0070.00016.97
8.0.100.0000.00716.79
8.0.90.0050.00216.86
8.0.80.0090.00616.88
8.0.70.0040.00416.90
8.0.60.0000.00716.76
8.0.50.0000.00716.73
8.0.30.0110.01216.92
8.0.20.0130.00617.40
8.0.10.0040.00417.06
8.0.00.0050.01316.70
7.4.330.0050.00015.12
7.4.320.0000.00716.58
7.4.300.0060.00016.64
7.4.290.0000.00716.50
7.4.280.0040.00416.52
7.4.270.0060.00016.53
7.4.260.0030.00316.64
7.4.250.0040.00416.48
7.4.240.0050.00216.59
7.4.230.0070.00016.70
7.4.220.0150.00316.38
7.4.210.0050.01016.61
7.4.200.0050.00216.71
7.4.160.0170.00716.40
7.4.150.0120.00617.40
7.4.140.0160.00517.86
7.4.130.0080.01116.52
7.4.120.0060.01016.50
7.4.110.0030.02016.54
7.4.100.0150.00916.52
7.4.90.0070.01016.58
7.4.80.0100.00919.39
7.4.70.0090.01016.61
7.4.60.0090.00616.44
7.4.50.0000.00616.22
7.4.40.0100.00716.61
7.4.30.0120.01116.56
7.4.10.0090.01014.93
7.4.00.0030.01215.04
7.3.330.0050.00013.37
7.3.320.0150.00013.27
7.3.310.0000.00716.24
7.3.300.0070.00016.19
7.3.290.0030.00316.37
7.3.280.0100.01116.35
7.3.270.0130.01017.40
7.3.260.0060.01816.34
7.3.250.0090.01216.42
7.3.240.0060.01116.58
7.3.230.0070.01016.59
7.3.210.0080.00916.18
7.3.200.0030.01519.39
7.3.190.0100.00716.59
7.3.180.0070.01016.45
7.3.170.0070.01416.68
7.3.160.0060.01016.40
7.3.130.0060.01114.83
7.3.120.0030.01214.85
7.3.110.0070.01114.99
7.3.100.0050.01114.69
7.3.90.0100.00714.65
7.3.80.0070.00514.69
7.3.70.0070.00914.88
7.3.60.0040.00914.73
7.3.50.0080.00814.60
7.3.40.0020.00814.74
7.3.30.0070.00114.71
7.3.20.0060.00816.71
7.3.10.0060.00416.67
7.3.00.0080.00516.52
7.2.330.0110.00716.41
7.2.320.0090.01416.56
7.2.310.0120.00616.87
7.2.300.0110.00616.80
7.2.290.0080.01516.50
7.2.260.0090.01115.11
7.2.250.0030.00915.04
7.2.240.0050.01215.10
7.2.230.0060.01115.00
7.2.220.0070.00914.87
7.2.210.0070.00915.14
7.2.200.0060.00815.15
7.2.190.0070.00915.09
7.2.180.0090.00514.99
7.2.170.0030.01115.07
7.2.160.0030.01015.12
7.2.150.0070.01016.93
7.2.140.0090.00516.85
7.2.130.0030.01016.94
7.2.120.0020.01117.06
7.2.110.0080.00417.00
7.2.100.0020.01016.97
7.2.90.0050.01017.03
7.2.80.0020.00917.03
7.2.70.0030.00716.96
7.2.60.0070.00716.71
7.2.50.0080.00617.05
7.2.40.0080.00317.05
7.2.30.0050.00717.03
7.2.20.0100.00416.95
7.2.10.0040.01016.82
7.2.00.0060.00917.66
7.1.330.0050.00915.73
7.1.320.0050.00715.87
7.1.310.0070.01015.72
7.1.300.0080.00415.86
7.1.290.0110.00515.69
7.1.280.0060.00915.71
7.1.270.0040.00515.68
7.1.260.0020.01115.82
7.1.250.0060.00815.68
7.1.240.0020.01115.63
7.1.230.0030.00915.72
7.1.220.0050.00615.64
7.1.210.0050.00815.66
7.1.200.0080.00715.70
7.1.190.0040.00615.68
7.1.180.0040.00915.87
7.1.170.0060.00815.68
7.1.160.0060.00315.85
7.1.150.0100.00315.82
7.1.140.0040.00915.76
7.1.130.0030.00915.65
7.1.120.0070.00415.62
7.1.110.0060.00815.76
7.1.100.0070.00616.59
7.1.90.0090.00515.89
7.1.80.0060.00815.67
7.1.70.0050.00616.17
7.1.60.0070.01016.97
7.1.50.0070.01116.07
7.1.40.0070.00615.73
7.1.30.0060.00815.54
7.1.20.0060.01015.61
7.1.10.0040.00615.81
7.1.00.0070.02717.93
7.0.330.0100.00515.42
7.0.320.0060.01015.44
7.0.310.0080.00415.23
7.0.300.0030.01115.46
7.0.290.0080.00315.30
7.0.280.0030.01015.40
7.0.270.0030.00615.39
7.0.260.0080.00515.47
7.0.250.0110.00215.45
7.0.240.0050.00815.57
7.0.230.0020.00915.53
7.0.220.0060.01015.33
7.0.210.0060.01015.59
7.0.200.0030.00615.87
7.0.190.0100.00515.38
7.0.180.0080.00515.29
7.0.170.0030.00915.45
7.0.160.0070.00815.35
7.0.150.0080.00315.38
7.0.140.0060.02817.65
7.0.130.0050.00715.44
7.0.120.0060.00615.40
7.0.110.0050.00815.49
7.0.100.0030.01115.38
7.0.90.0070.00715.25
7.0.80.0020.00815.35
7.0.70.0060.00715.48
7.0.60.0050.02916.88
7.0.50.0050.01816.11
7.0.40.0040.02215.74
7.0.30.0130.02015.61
7.0.20.0120.03215.66
7.0.10.0030.02115.68
7.0.00.0070.03115.72
5.6.400.0050.00814.54
5.6.390.0090.00714.47
5.6.380.0020.00914.42
5.6.370.0020.01014.27
5.6.360.0030.00614.34
5.6.350.0050.00814.44
5.6.340.0000.01114.46
5.6.330.0070.00614.03
5.6.320.0050.01014.17
5.6.310.0050.01214.45
5.6.300.0100.00514.34
5.6.290.0010.00814.30
5.6.280.0070.02716.63
5.6.270.0060.00614.34
5.6.260.0060.00614.21
5.6.250.0030.00814.50
5.6.240.0100.00514.32
5.6.230.0050.00614.21
5.6.220.0050.00914.25
5.6.210.0060.03316.46
5.6.200.0100.02915.57
5.6.190.0080.02416.39
5.6.180.1380.02116.36
5.6.170.0110.01916.44
5.6.160.0120.02816.33
5.6.150.0060.02215.62
5.6.140.0010.03015.58
5.6.130.0050.03215.66
5.6.120.0030.02616.72
5.6.110.0100.01216.53
5.6.100.0070.03416.60
5.6.90.0080.01716.58
5.6.80.0070.02816.13
5.6.70.1450.01616.32
5.6.60.0040.00714.19
5.6.50.0060.00714.26
5.6.40.0130.00214.33
5.6.30.0040.00914.20
5.6.20.0070.00714.28
5.6.10.0060.00814.37
5.6.00.0080.00314.25
5.5.380.0040.01014.33
5.5.370.0000.00914.29
5.5.360.0050.00514.01
5.5.350.0160.03216.38
5.5.340.0060.02915.61
5.5.330.0060.02816.25
5.5.320.0190.02416.34
5.5.310.0110.03316.43
5.5.300.0060.02915.51
5.5.290.0050.02415.52
5.5.280.0020.02016.57
5.5.270.0070.03016.39
5.5.260.0080.02916.29
5.5.250.0040.02816.48
5.5.240.0100.03216.23
5.5.230.0050.00914.34
5.5.220.0030.00914.22
5.5.210.0060.00814.28
5.5.200.0050.00714.09
5.5.190.0070.00714.43
5.5.180.0070.00514.27
5.5.170.0020.00914.29
5.5.160.0080.00114.25
5.5.150.0020.01114.02
5.5.140.0070.00714.32
5.5.130.0060.00813.96
5.5.120.0060.00514.13
5.5.110.0030.01014.38
5.5.100.0020.01214.07
5.5.90.0070.00814.04
5.5.80.0030.00814.33
5.5.70.0080.00714.36
5.5.60.0010.00713.98
5.5.50.0060.00914.21
5.5.40.0020.01314.20
5.5.30.0120.00514.08
5.5.20.0060.00514.19
5.5.10.0000.01214.14
5.5.00.0120.00214.08
5.4.450.0570.02114.55
5.4.440.1200.02314.53
5.4.430.1130.01814.42
5.4.420.1150.01414.54
5.4.410.1010.01614.46
5.4.400.1070.01814.35
5.4.390.1230.01714.47
5.4.380.1170.01714.48
5.4.370.1140.01814.42
5.4.360.1180.01214.44
5.4.350.1210.01914.41
5.4.340.1130.01714.37
5.4.330.0050.00512.05
5.4.320.1230.02114.44
5.4.310.1000.01714.33
5.4.300.1020.01514.44
5.4.290.0990.01814.45
5.4.280.0890.01614.44
5.4.270.1010.01514.40
5.4.260.1040.01414.41
5.4.250.1090.01414.39
5.4.240.0920.02214.47
5.4.230.0970.01814.45
5.4.220.0870.01214.43
5.4.210.1080.01714.36
5.4.200.0810.01714.38
5.4.190.0690.01914.37
5.4.180.0020.01714.47
5.4.170.0050.01514.44
5.4.160.0040.01714.43
5.4.150.0850.01614.41
5.4.140.1300.02013.52
5.4.130.1060.01613.50
5.4.120.1090.01513.52
5.4.110.0920.01513.45
5.4.100.1000.01613.56
5.4.90.1200.01913.45
5.4.80.1440.01713.54
5.4.70.1280.01513.56
5.4.60.1230.01313.51
5.4.50.1090.01813.48
5.4.40.1240.01713.47
5.4.30.1210.02013.48
5.4.20.1180.01513.54
5.4.10.1120.01813.54
5.4.00.1240.01713.31
5.3.290.3430.03314.65
5.3.280.3430.04014.50
5.3.270.3600.05014.59
5.3.260.3400.03714.62
5.3.250.3370.03714.62
5.3.240.3700.04014.67
5.3.230.3300.03714.69
5.3.220.3330.03314.54
5.3.210.3300.03714.48
5.3.200.3070.04014.69
5.3.190.3370.03714.58
5.3.180.3500.04014.47
5.3.170.3300.03014.69
5.3.160.3430.03314.47
5.3.150.3570.04314.65
5.3.140.3330.03314.68
5.3.130.3600.04314.61
5.3.120.3370.03714.64
5.3.110.3070.03314.48
5.3.100.3200.03714.06
5.3.90.3430.03013.92
5.3.80.3400.04013.94
5.3.70.3370.04014.11
5.3.60.3370.03714.06
5.3.50.3200.03714.02
5.3.40.3300.03013.88
5.3.30.3200.03713.97
5.3.20.3130.04013.71
5.3.10.3500.03313.74
5.3.00.3230.03713.55
5.2.170.2700.02711.05
5.2.160.2770.02711.27
5.2.150.2870.02711.15
5.2.140.2930.03011.05
5.2.130.2800.02711.04
5.2.120.3370.03711.34
5.2.110.2770.03011.03
5.2.100.2570.03011.15
5.2.90.1800.03011.32
5.2.80.2700.03311.00
5.2.70.2530.04011.32
5.2.60.2530.03310.96
5.2.50.2570.03010.99
5.2.40.2330.03310.95
5.2.30.2300.03310.98
5.2.20.2100.03311.04
5.2.10.1800.03010.83
5.2.00.2270.02310.64
5.1.60.2070.02710.08
5.1.50.2300.0279.99
5.1.40.2070.02310.07
5.1.30.2300.03010.39
5.1.20.2170.02010.27
5.1.10.2370.0209.97
5.1.00.2170.02310.00
5.0.50.1270.0308.55
5.0.40.1070.0208.49
5.0.30.1070.0308.27
5.0.20.1230.0278.13
5.0.10.1030.0208.05
5.0.00.1300.0338.24
4.4.90.1070.0136.71
4.4.80.1270.0206.71
4.4.70.1200.0176.71
4.4.60.1200.0136.71
4.4.50.1130.0136.71
4.4.40.1100.0276.71
4.4.30.1000.0176.71
4.4.20.1000.0176.71
4.4.10.1170.0176.71
4.4.00.1200.0336.71
4.3.110.1170.0176.71
4.3.100.1300.0206.71
4.3.90.1200.0176.71
4.3.80.1030.0236.71
4.3.70.1270.0206.71
4.3.60.1300.0136.71
4.3.50.1070.0136.71
4.3.40.1270.0336.71
4.3.30.0570.0206.71
4.3.20.0500.0176.71
4.3.10.0530.0136.71
4.3.00.0500.0176.71

preferences:
42.93 ms | 400 KiB | 5 Q