3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { var_dump('In foo!'); } public function call() { static::bar(); } } class Baz extends Foo { public static function bar() { var_dump('In baz!'); } } $baz = new Baz(); $baz->call();

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.0110.01116.50
8.3.60.0090.00918.20
8.3.50.0110.00522.10
8.3.40.0120.00318.69
8.3.30.0070.00718.71
8.3.20.0000.00820.38
8.3.10.0040.00422.04
8.3.00.0080.00022.38
8.2.180.0190.00316.50
8.2.170.0070.00722.96
8.2.160.0070.01020.76
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00518.84
8.2.110.0080.00022.20
8.2.100.0030.00917.72
8.2.90.0000.00819.01
8.2.80.0000.00918.04
8.2.70.0000.00817.38
8.2.60.0000.00717.80
8.2.50.0060.00618.07
8.2.40.0000.00818.22
8.2.30.0000.00718.05
8.2.20.0000.00817.70
8.2.10.0000.00819.46
8.2.00.0040.00417.61
8.1.280.0110.00725.92
8.1.270.0060.00322.18
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00823.85
8.1.230.0070.00319.02
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.22
8.1.190.0000.00817.40
8.1.180.0030.00618.10
8.1.170.0080.00018.57
8.1.160.0070.00021.83
8.1.150.0000.00718.49
8.1.140.0000.00917.39
8.1.130.0000.00717.78
8.1.120.0080.00017.40
8.1.110.0000.00717.46
8.1.100.0040.00317.40
8.1.90.0040.00417.34
8.1.80.0040.00417.29
8.1.70.0000.00717.39
8.1.60.0050.00517.59
8.1.50.0070.00017.43
8.1.40.0040.00417.46
8.1.30.0030.00517.53
8.1.20.0040.00417.49
8.1.10.0020.00517.41
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0070.00017.04
8.0.280.0000.00718.31
8.0.270.0000.00717.07
8.0.260.0060.00016.66
8.0.250.0030.00316.79
8.0.240.0040.00416.88
8.0.230.0000.00716.75
8.0.220.0030.00316.89
8.0.210.0030.00316.84
8.0.200.0000.00716.75
8.0.190.0040.00416.93
8.0.180.0070.00016.74
8.0.170.0070.00016.79
8.0.160.0040.00416.95
8.0.150.0030.00516.73
8.0.140.0000.00716.79
8.0.130.0030.00313.21
8.0.120.0000.00916.71
8.0.110.0040.00416.82
8.0.100.0070.00016.66
8.0.90.0080.00016.90
8.0.80.0090.00916.85
8.0.70.0040.00416.87
8.0.60.0000.00816.75
8.0.50.0030.00516.77
8.0.30.0180.00816.87
8.0.20.0120.01217.40
8.0.10.0030.00317.01
8.0.00.0170.00116.54
7.4.330.0000.00515.09
7.4.320.0000.00616.46
7.4.300.0000.00616.59
7.4.290.0000.00716.46
7.4.280.0000.00716.49
7.4.270.0000.00816.54
7.4.260.0000.00816.52
7.4.250.0030.00316.52
7.4.240.0000.00716.58
7.4.230.0070.00016.67
7.4.220.0110.00716.71
7.4.210.0070.01116.56
7.4.200.0030.00316.59
7.4.190.0000.00716.59
7.4.160.0120.00616.43
7.4.150.0110.00617.40
7.4.140.0100.01017.86
7.4.130.0120.00916.36
7.4.120.0170.00116.48
7.4.110.0060.00916.39
7.4.100.0100.00716.77
7.4.90.0070.01116.36
7.4.80.0160.00619.39
7.4.70.0060.01016.45
7.4.60.0100.00716.33
7.4.50.0040.00416.34
7.4.40.0120.00322.77
7.4.30.0060.01216.34
7.4.00.0070.00915.02
7.3.330.0050.00013.23
7.3.320.0060.00013.00
7.3.310.0070.00016.14
7.3.300.0030.00316.28
7.3.290.0030.01416.32
7.3.280.0050.01116.24
7.3.270.0100.00717.40
7.3.260.0070.01016.16
7.3.250.0050.01216.22
7.3.240.0100.01016.20
7.3.230.0150.00816.39
7.3.210.0100.00616.30
7.3.200.0100.00619.39
7.3.190.0080.00816.19
7.3.180.0000.01516.51
7.3.170.0110.01116.27
7.3.160.0030.01316.44
7.3.120.0070.00914.58
7.3.110.0040.01414.92
7.3.100.0000.01414.61
7.3.90.0030.00914.86
7.3.80.0000.00914.75
7.3.70.0060.00614.58
7.3.60.0130.00014.85
7.3.50.0100.00314.45
7.3.40.0040.00814.46
7.3.30.0040.01514.55
7.3.20.0040.00816.53
7.3.10.0070.00316.80
7.3.00.0100.00716.68
7.2.330.0040.01316.24
7.2.320.0120.00616.40
7.2.310.0090.00916.48
7.2.300.0130.00416.61
7.2.290.0060.01016.36
7.2.250.0100.01014.93
7.2.240.0120.00315.06
7.2.230.0030.01315.18
7.2.220.0070.00315.14
7.2.210.0070.00714.46
7.2.200.0030.01315.11
7.2.190.0070.00314.98
7.2.180.0150.00314.65
7.2.170.0120.00314.86
7.2.00.0070.01119.28
7.1.330.0070.00715.67
7.1.320.0060.00915.63
7.1.310.0000.01315.57
7.1.300.0040.01215.69
7.1.290.0070.01015.50
7.1.280.0150.00415.61
7.1.270.0090.00315.46
7.1.260.0030.00915.79
7.1.100.0080.00817.90
7.1.70.0050.00316.64
7.1.60.0140.01019.82
7.1.50.0090.00616.93
7.1.00.0030.07722.44
7.0.200.0030.00316.59
7.0.140.0030.07322.00
7.0.60.0100.08319.75
7.0.50.0100.08317.86
7.0.40.0100.08720.29
7.0.30.0200.04320.19
7.0.20.0370.06720.23
7.0.10.0030.05020.06
7.0.00.0130.03720.20
5.6.280.0100.07021.11
5.6.210.0130.07720.48
5.6.200.0070.05018.29
5.6.190.0030.09020.62
5.6.180.0070.05320.63
5.6.170.0230.04020.40
5.6.160.0030.09020.50
5.6.150.0030.07018.23
5.6.140.0130.05018.15
5.6.130.0130.08018.17
5.6.120.0100.08021.16
5.6.110.0030.09021.14
5.6.100.0000.04720.98
5.6.90.0130.08021.10
5.6.80.0030.04020.39
5.5.350.4000.04020.43
5.5.340.0100.08018.09
5.5.330.0100.03720.40
5.5.320.0000.04020.21
5.5.310.0030.08320.36
5.5.300.0100.03017.95
5.5.290.0030.08317.98
5.5.280.0100.04320.96
5.5.270.0030.04020.73
5.5.260.0070.04020.77
5.5.250.0170.04720.78
5.5.240.0070.08020.12
5.4.450.0570.04019.41
5.4.440.0230.04019.55
5.4.430.0170.04719.24
5.4.420.1300.03319.16
5.4.410.0630.02319.33
5.4.400.0130.04718.76
5.4.390.0000.06318.75
5.4.380.0170.06018.50
5.4.370.0170.04718.69
5.4.360.0100.05318.71
5.4.350.0130.05318.60
5.4.340.0070.06018.74
5.4.320.0050.03712.50
5.4.310.0070.05012.50
5.4.300.0070.04312.50
5.4.290.0070.04212.50
5.4.280.0060.03512.40
5.4.270.0130.05018.94
5.4.260.0100.07018.93
5.4.250.0070.08019.01
5.4.240.0100.05319.13
5.4.230.0130.04719.00
5.4.220.0170.05318.94
5.4.210.0170.06719.09
5.4.200.0170.06319.11
5.4.190.0100.05718.82
5.4.180.0200.06319.06
5.4.170.0200.04718.91
5.4.160.0130.05319.00
5.4.150.0070.06319.03
5.4.140.0230.06016.71
5.4.130.0100.05316.76
5.4.120.0100.05016.44
5.4.110.0100.05316.63
5.4.100.0200.04716.72
5.4.90.0070.07016.74
5.4.80.0100.06016.72
5.4.70.0170.04016.52
5.4.60.0130.07716.65
5.4.50.0200.04716.66
5.4.40.0070.06016.45
5.4.30.0030.08016.65
5.4.20.0100.05016.64
5.4.10.0130.05316.54
5.4.00.0000.06315.97
5.3.290.0060.04712.80
5.3.280.0100.05014.79
5.3.270.0200.07014.66
5.3.260.0170.06014.72
5.3.250.0100.06014.47
5.3.240.0130.07014.50
5.3.230.0070.05714.65
5.3.220.0170.07014.87
5.3.210.0130.05714.75
5.3.200.0130.04314.74
5.3.190.0170.07314.83
5.3.180.0070.06314.82
5.3.170.0070.05314.45
5.3.160.0170.04714.85
5.3.150.0200.05714.84
5.3.140.0070.05014.61
5.3.130.0170.05314.55
5.3.120.0070.06014.60
5.3.110.0070.05714.84
5.3.100.0130.05314.23
5.3.90.0270.07014.07
5.3.80.0130.05014.31
5.3.70.0130.05014.24
5.3.60.0100.06314.12
5.3.50.0030.07014.17
5.3.40.0070.05314.13
5.3.30.0130.04714.11
5.3.20.0100.05313.99
5.3.10.0130.07013.91
5.3.00.0130.05713.93
5.2.170.0070.04011.43
5.2.160.0130.05311.45
5.2.150.0070.04311.27
5.2.140.0070.04711.43
5.2.130.0100.04011.29
5.2.120.0070.04311.15
5.2.110.0100.05311.32
5.2.100.0070.06011.07
5.2.90.0100.05011.39
5.2.80.0070.04011.29
5.2.70.0100.06011.29
5.2.60.0070.04010.93
5.2.50.0170.04011.20
5.2.40.0000.05311.02
5.2.30.0030.05711.23
5.2.20.0130.04711.14
5.2.10.0130.05010.98
5.2.00.0000.04710.61
5.1.60.0030.03710.40
5.1.50.0030.04010.40
5.1.40.0130.04310.40
5.1.30.0170.04010.40
5.1.20.0070.05710.40
5.1.10.0170.03710.40
5.1.00.0070.04010.40
5.0.50.0070.03010.40
5.0.40.0070.03710.40
5.0.30.0030.05010.40
5.0.20.0030.03010.40
5.0.10.0000.04310.40
5.0.00.0030.04010.40
4.4.90.0070.02710.40
4.4.80.0070.02710.40
4.4.70.0000.02310.40
4.4.60.0030.02310.40
4.4.50.0100.02310.40
4.4.40.0030.03310.40
4.4.30.0030.03010.40
4.4.20.0000.03310.40
4.4.10.0100.02310.40
4.4.00.0070.04310.40
4.3.110.0030.03010.40
4.3.100.0030.02310.40
4.3.90.0070.02310.40
4.3.80.0030.03710.40
4.3.70.0030.02010.40
4.3.60.0030.02010.40
4.3.50.0030.03010.40
4.3.40.0030.03310.40
4.3.30.0070.02310.40
4.3.20.0030.02710.40
4.3.10.0000.03010.40
4.3.00.0130.02015.59

preferences:
52.06 ms | 401 KiB | 5 Q