3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public static function hi() { $cl = function(){ echo Left::$prot; }; $cl(); } } class Left extends Base { protected static $prot = "Hello, world!\n"; } class Right extends Base { } Base::hi(); Right::hi();

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.0150.00718.56
8.3.60.0100.01318.31
8.3.50.0130.00722.00
8.3.40.0070.00718.97
8.3.30.0090.00619.02
8.3.20.0070.00019.97
8.3.10.0030.00520.53
8.3.00.0040.00419.25
8.2.180.0070.01418.22
8.2.170.0070.00722.96
8.2.160.0140.00022.26
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00022.11
8.2.110.0030.00619.33
8.2.100.0070.00417.85
8.2.90.0050.00317.63
8.2.80.0040.00417.97
8.2.70.0030.00517.80
8.2.60.0000.00718.16
8.2.50.0080.00018.10
8.2.40.0040.00418.22
8.2.30.0000.00719.12
8.2.20.0000.00717.67
8.2.10.0040.00417.93
8.2.00.0030.00617.66
8.1.280.0110.00725.92
8.1.270.0090.00023.70
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0090.00022.24
8.1.230.0030.00920.97
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0000.00817.25
8.1.180.0080.00018.10
8.1.170.0040.00418.70
8.1.160.0000.00822.05
8.1.150.0040.00418.89
8.1.140.0060.00317.41
8.1.130.0000.00817.87
8.1.120.0040.00417.48
8.1.110.0030.00517.32
8.1.100.0070.00017.47
8.1.90.0000.00717.47
8.1.80.0000.00817.47
8.1.70.0030.00317.48
8.1.60.0000.00817.63
8.1.50.0030.00517.48
8.1.40.0030.00617.47
8.1.30.0060.00317.60
8.1.20.0000.00817.63
8.1.10.0040.00417.60
8.1.00.0040.00417.41
8.0.300.0000.00720.21
8.0.290.0000.00716.75
8.0.280.0030.00318.41
8.0.270.0030.00317.15
8.0.260.0030.00317.17
8.0.250.0030.00316.98
8.0.240.0060.00016.80
8.0.230.0070.00016.88
8.0.220.0030.00316.75
8.0.210.0040.00416.72
8.0.200.0020.00516.81
8.0.190.0040.00416.94
8.0.180.0040.00416.87
8.0.170.0030.00316.82
8.0.160.0000.00716.76
8.0.150.0070.00016.79
8.0.140.0000.00716.86
8.0.130.0030.00313.32
8.0.120.0030.00516.84
8.0.110.0040.00416.79
8.0.100.0040.00416.99
8.0.90.0040.00416.77
8.0.80.0110.00316.87
8.0.70.0070.00016.75
8.0.60.0080.00016.89
8.0.50.0000.00716.87
8.0.30.0150.01216.92
8.0.20.0080.01017.40
8.0.10.0000.00717.06
8.0.00.0100.00816.86
7.4.330.0000.00515.00
7.4.320.0030.00316.60
7.4.300.0030.00316.51
7.4.290.0030.00316.47
7.4.280.0050.00316.48
7.4.270.0030.00316.54
7.4.260.0050.00216.53
7.4.250.0040.00416.52
7.4.240.0020.00516.54
7.4.230.0000.00716.39
7.4.220.0060.01516.54
7.4.210.0100.00316.67
7.4.200.0050.00316.66
7.4.160.0060.00916.62
7.4.150.0060.01217.40
7.4.140.0120.01017.86
7.4.130.0090.01116.54
7.4.120.0110.00616.54
7.4.110.0030.01316.45
7.4.100.0060.01216.36
7.4.90.0110.00716.53
7.4.80.0100.00719.37
7.4.70.0140.00316.38
7.4.60.0070.01416.61
7.4.50.0040.00416.36
7.4.40.0130.00316.50
7.4.30.0060.00916.42
7.4.00.0130.00314.80
7.3.330.0030.00313.27
7.3.320.0030.00313.17
7.3.310.0040.00416.16
7.3.300.0070.00016.18
7.3.290.0090.00616.28
7.3.280.0130.00716.27
7.3.270.0060.01217.40
7.3.260.0070.01016.30
7.3.250.0070.01616.27
7.3.240.0110.00416.30
7.3.230.0090.00816.39
7.3.210.0110.00616.26
7.3.200.0140.00319.39
7.3.190.0120.00816.34
7.3.180.0110.00416.43
7.3.170.0120.00316.27
7.3.160.0120.01316.49
7.2.330.0090.00816.78
7.2.320.0140.00416.73
7.2.310.0100.01316.79
7.2.300.0100.00716.79
7.2.290.0140.00316.64
7.2.60.0030.01016.86
7.2.00.0000.01219.07
7.1.200.0030.01015.76
7.1.100.0060.00618.00
7.1.70.0060.01116.95
7.1.60.0130.01019.32
7.1.50.0120.00616.80
7.1.00.0030.07722.50
7.0.200.0040.00416.73
7.0.140.0030.07322.17
7.0.60.0230.07021.74
7.0.50.0070.04017.88
7.0.40.0070.08720.10
7.0.30.0170.06720.07
7.0.20.0200.06720.15
7.0.10.0100.08320.19
7.0.00.0130.08320.19
5.6.280.0000.07321.08
5.6.210.0030.04320.51
5.6.200.0000.06318.21
5.6.190.0030.04720.47
5.6.180.0130.05320.47
5.6.170.0200.04020.47
5.6.160.0070.08720.54
5.6.150.0030.08718.21
5.6.140.0070.06018.29
5.6.130.0000.05018.11
5.6.120.0100.06321.16
5.6.110.0100.07720.98
5.6.100.0070.07720.98
5.6.90.0070.07321.01
5.6.80.0030.09020.38
5.5.350.3800.04720.43
5.5.340.0070.07017.93
5.5.330.0100.03720.42
5.5.320.0030.08720.31
5.5.310.0230.05020.35
5.5.300.0000.04717.94
5.5.290.0130.05017.97
5.5.280.0030.09020.81
5.5.270.0130.08020.68
5.5.260.0070.08320.76
5.5.250.0070.06320.56
5.5.240.0200.08020.36
5.4.450.3800.04319.52
5.4.440.3500.04319.31
5.4.430.4230.03719.46
5.4.420.4030.04019.47
5.4.410.3600.04719.26
5.4.400.3400.04019.25
5.4.390.3400.03718.99
5.4.380.3370.03319.16
5.4.370.3470.03018.94
5.4.360.3430.03319.22
5.4.350.3570.04019.23
5.4.340.3300.03719.25
5.4.320.3830.04719.20
5.4.310.3700.03719.25
5.4.300.3470.03718.87
5.4.290.3400.03019.22
5.4.280.3670.03319.13
5.4.270.3730.03719.21
5.4.260.3470.04019.08
5.4.250.3370.03719.07
5.4.240.3130.03718.86
5.4.230.3200.03719.18
5.4.220.4500.03319.13
5.4.210.3730.03719.24
5.4.200.3570.03719.30
5.4.190.4630.04318.86
5.4.180.3600.03719.25
5.4.170.3370.04019.21
5.4.160.3130.04319.28
5.4.150.3370.03319.07
5.4.140.3130.03316.38
5.4.130.3300.04316.46
5.4.120.3470.04016.33
5.4.110.3370.03716.45
5.4.100.3100.03716.56
5.4.90.3470.03316.50
5.4.80.3430.02716.56
5.4.70.3830.04316.30
5.4.60.3000.02716.34
5.4.50.3800.04016.25
5.4.40.3630.03316.42
5.4.30.3930.02316.42
5.4.20.2900.04016.32
5.4.10.3670.03716.52
5.4.00.3800.04315.95
5.3.290.3670.03714.57
5.3.280.3000.04314.67
5.3.270.3500.04014.55
5.3.260.3500.04014.77
5.3.250.3600.04014.66
5.3.240.3370.03314.60
5.3.230.3930.04014.61
5.3.220.3070.04014.50
5.3.210.3400.04014.48
5.3.200.3400.03314.65
5.3.190.3500.02714.49
5.3.180.3070.04014.54
5.3.170.3330.04014.68
5.3.160.3700.03014.79
5.3.150.3700.03714.48
5.3.140.3170.03314.55
5.3.130.3670.04014.67
5.3.120.3600.04014.57
5.3.110.3630.03714.55
5.3.100.3630.03314.25
5.3.90.3770.04013.99
5.3.80.3600.04014.25
5.3.70.3630.03714.07
5.3.60.3770.02313.89
5.3.50.3600.04014.01
5.3.40.4100.03714.12
5.3.30.4030.03314.01
5.3.20.4100.02713.86
5.3.10.2800.04013.58
5.3.00.3530.02313.57
5.2.170.3230.02011.10
5.2.160.3270.02711.05
5.2.150.3530.02711.05
5.2.140.3330.03711.21
5.2.130.2930.03311.14
5.2.120.3130.03011.18
5.2.110.2970.02711.00
5.2.100.3030.03311.26
5.2.90.2930.02011.01
5.2.80.3200.02711.05
5.2.70.3170.03311.10
5.2.60.2900.02711.05
5.2.50.3430.02711.03
5.2.40.2570.03711.11
5.2.30.2500.03011.04
5.2.20.2670.02011.04
5.2.10.2530.02710.79
5.2.00.2300.02710.76
5.1.60.2270.02310.54
5.1.50.2300.02310.54
5.1.40.2600.01710.54
5.1.30.2400.03010.54
5.1.20.2370.03010.54
5.1.10.2570.02710.54
5.1.00.2270.02710.54
5.0.50.1330.02310.54
5.0.40.1030.02710.54
5.0.30.1130.03010.54
5.0.20.1400.02010.54
5.0.10.0030.02310.54
5.0.00.1370.03710.54
4.4.90.1300.01710.54
4.4.80.1130.01310.54
4.4.70.1370.01710.54
4.4.60.1070.02010.54
4.4.50.1300.02010.54
4.4.40.1470.02310.54
4.4.30.1470.01310.54
4.4.20.1400.02010.54
4.4.10.1370.01310.54
4.4.00.1100.02310.54
4.3.110.1170.01310.54
4.3.100.1430.01010.54
4.3.90.1330.02010.54
4.3.80.1370.02010.54
4.3.70.1330.01710.54
4.3.60.1270.02310.54
4.3.50.1630.01310.54
4.3.40.1430.02310.54
4.3.30.0630.02310.54
4.3.20.0830.02310.54
4.3.10.0830.02010.54
4.3.00.0670.01310.54

preferences:
44.46 ms | 401 KiB | 5 Q