3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { protected static $what; static function change_what($where) { static::$what = $where; } static function show() { echo static::$what . PHP_EOL; } } class B extends A { static function change_what($where) { static::$what = $where; } } class C extends A { static function change_what($where) { static::$what = $where; } } B::change_what("b"); C::change_what("c"); B::show(); C::show();

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.0110.00416.75
8.3.50.0090.00917.98
8.3.40.0040.01418.67
8.3.30.0090.00619.09
8.3.20.0040.00420.34
8.3.10.0000.00823.57
8.3.00.0000.00820.79
8.2.180.0160.00018.41
8.2.170.0060.01622.96
8.2.160.0110.00419.37
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0100.00017.80
8.2.110.0030.00721.04
8.2.100.0090.00317.77
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0000.00820.53
8.2.30.0000.00918.12
8.2.20.0080.00017.61
8.2.10.0040.00418.01
8.2.00.0000.00817.57
8.1.280.0090.00625.92
8.1.270.0110.00020.61
8.1.260.0050.00526.35
8.1.250.0090.00028.09
8.1.240.0060.00321.29
8.1.230.0040.00817.45
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00717.23
8.1.180.0080.00018.10
8.1.170.0050.00318.70
8.1.160.0040.00421.96
8.1.150.0000.00718.94
8.1.140.0070.00217.50
8.1.130.0000.00717.75
8.1.120.0020.00517.47
8.1.110.0030.00517.46
8.1.100.0040.00417.33
8.1.90.0000.00717.52
8.1.80.0040.00417.41
8.1.70.0000.00717.47
8.1.60.0000.00817.54
8.1.50.0040.00417.43
8.1.40.0030.00517.39
8.1.30.0040.00417.59
8.1.20.0050.00517.61
8.1.10.0070.00417.53
8.1.00.0040.00417.47
8.0.300.0000.00818.77
8.0.290.0090.00016.75
8.0.280.0070.00018.45
8.0.270.0070.00017.26
8.0.260.0000.00717.14
8.0.250.0000.00716.84
8.0.240.0070.00017.00
8.0.230.0040.00417.02
8.0.220.0000.00716.88
8.0.210.0030.00316.96
8.0.200.0080.00016.88
8.0.190.0030.00616.95
8.0.180.0030.00616.96
8.0.170.0140.00416.94
8.0.160.0070.00016.84
8.0.150.0030.00316.79
8.0.140.0000.00716.81
8.0.130.0050.00013.37
8.0.120.0040.00416.83
8.0.110.0080.00016.92
8.0.100.0040.00416.75
8.0.90.0050.00316.73
8.0.80.0000.01616.86
8.0.70.0000.00816.79
8.0.60.0080.00016.88
8.0.50.0000.00816.77
8.0.30.0160.00917.04
8.0.20.0250.02117.40
8.0.10.0000.00816.74
8.0.00.0050.01216.63
7.4.330.0000.00515.03
7.4.320.0030.00316.34
7.4.300.0070.00016.52
7.4.290.0030.00816.64
7.4.280.0060.00316.51
7.4.270.0030.00316.63
7.4.260.0040.00416.51
7.4.250.0040.00416.46
7.4.240.0000.00716.46
7.4.230.0070.00016.71
7.4.220.0090.00916.61
7.4.210.0050.00816.54
7.4.200.0040.00416.31
7.4.160.0100.00616.41
7.4.150.0170.00717.40
7.4.140.0110.00717.86
7.4.130.0120.00816.38
7.4.120.0080.00916.39
7.4.110.0120.00616.48
7.4.100.0110.00716.71
7.4.90.0000.01616.41
7.4.80.0130.00619.39
7.4.70.0080.00816.57
7.4.60.0060.01216.39
7.4.50.0030.00616.58
7.4.40.0060.01216.54
7.4.30.0060.01316.58
7.4.00.0140.00314.87
7.3.330.0080.00513.21
7.3.320.0000.00513.14
7.3.310.0040.00416.23
7.3.300.0000.00716.36
7.3.290.0080.00616.37
7.3.280.0110.00616.37
7.3.270.0060.01017.40
7.3.260.0280.02316.73
7.3.250.0090.00916.51
7.3.240.0080.00816.36
7.3.230.0030.01416.41
7.3.210.0040.01216.71
7.3.200.0060.01119.39
7.3.190.0100.00616.24
7.3.180.0060.01416.71
7.3.170.0060.01616.31
7.3.160.0120.01016.62
7.3.10.0030.01216.44
7.3.00.0040.01116.51
7.2.330.0050.01416.40
7.2.320.0140.00316.29
7.2.310.0120.00816.41
7.2.300.0040.01216.74
7.2.290.0080.01416.38
7.2.130.0120.00317.05
7.2.120.0070.01117.02
7.2.110.0040.01116.97
7.2.100.0000.00917.10
7.2.90.0090.00317.11
7.2.80.0080.00416.95
7.2.70.0060.00316.95
7.2.60.0100.00016.80
7.2.50.0000.01716.96
7.2.40.0080.00716.94
7.2.30.0080.00416.90
7.2.20.0150.00416.92
7.2.10.0140.00016.95
7.2.00.0080.00618.12
7.1.250.0060.00615.76
7.1.100.0000.01218.20
7.1.70.0070.00717.13
7.1.60.0030.01619.46
7.1.50.0130.00616.86
7.1.00.0070.07322.33
7.0.200.0040.00714.73
7.0.140.0000.05722.01
7.0.60.0100.08019.94
7.0.50.0070.08317.87
7.0.40.0070.09020.38
7.0.30.0370.04320.12
7.0.20.0330.07320.17
7.0.10.0130.05020.24
7.0.00.0130.07320.11
5.6.280.0070.06721.13
5.6.210.0030.08720.48
5.6.200.0100.04718.27
5.6.190.0100.08320.39
5.6.180.0330.04720.45
5.6.170.0230.03320.48
5.6.160.0170.04720.56
5.6.150.0000.04318.15
5.6.140.0030.07718.18
5.6.130.0030.07018.27
5.6.120.0030.04021.00
5.6.110.0030.04021.13
5.6.100.0100.07320.99
5.6.90.0170.07321.04
5.6.80.0130.07320.38
5.5.350.0300.07320.33
5.5.340.0100.04317.94
5.5.330.0130.07720.27
5.5.320.0300.07020.30
5.5.310.0400.07020.24
5.5.300.0000.08717.95
5.5.290.0000.04718.08
5.5.280.0070.03720.70
5.5.270.0000.05720.84
5.5.260.0170.06720.86
5.5.250.0030.04320.46
5.5.240.0000.07320.19
5.4.450.0830.06019.46
5.4.440.0900.05719.60
5.4.430.0000.07019.38
5.4.420.0200.07019.54
5.4.410.0130.05719.40
5.4.400.0100.06018.74
5.4.390.0070.06018.54
5.4.380.0170.05318.63
5.4.370.0070.06018.57
5.4.360.0030.06318.60
5.4.350.0200.04718.72
5.4.340.0170.04718.73
5.4.320.0200.04718.83
5.4.310.0170.05018.56
5.4.300.0330.03318.84
5.4.290.0030.06018.78
5.4.280.0170.05018.72
5.4.270.0200.05318.53
5.4.260.0100.06018.49
5.4.250.0100.06018.61
5.4.240.0130.05718.73
5.4.230.0170.04718.46
5.4.220.0130.06018.49
5.4.210.0200.05018.57
5.4.200.0130.05016.63
5.4.190.0200.05318.75
5.4.180.0170.05318.73
5.4.170.0200.05018.75
5.4.160.0130.05718.73
5.4.150.0170.05718.68
5.4.140.0170.05016.28
5.4.130.0200.06316.30
5.4.120.0200.04316.30
5.4.110.0070.05716.25
5.4.100.0200.05016.26
5.4.90.0130.05316.26
5.4.80.0130.05016.43
5.4.70.0300.05316.19
5.4.60.0200.04716.19
5.4.50.0130.05016.17
5.4.40.0130.05016.18
5.4.30.0130.05016.21
5.4.20.0100.05716.16
5.4.10.0130.05016.42
5.4.00.0100.05015.73
5.3.290.0130.07314.88
5.3.280.0270.06014.64
5.3.270.0200.06314.64
5.3.260.0030.06314.83
5.3.250.0100.06314.61
5.3.240.0130.07314.62
5.3.230.0130.07014.75
5.3.220.0030.06014.68
5.3.210.0130.05014.59
5.3.200.0100.05014.78
5.3.190.0130.05014.55
5.3.180.0130.06014.67
5.3.170.0170.05714.59
5.3.160.0100.05314.57
5.3.150.0100.05314.67
5.3.140.0130.05314.78
5.3.130.0130.06014.59
5.3.120.0270.06014.61
5.3.110.0130.07314.58
5.3.100.0200.06014.18
5.3.90.0170.04314.01
5.3.80.0130.05314.23
5.3.70.0130.04714.23
5.3.60.0130.05014.04
5.3.50.0170.05014.08
5.3.40.0130.05014.16
5.3.30.0070.05313.99
5.3.20.0100.05313.83
5.3.10.0100.05313.86
5.3.00.0170.04713.69
5.2.170.0070.04711.22
5.2.160.0100.04011.09
5.2.150.0100.04311.14
5.2.140.0100.04311.25
5.2.130.0130.04311.13
5.2.120.0230.02711.18
5.2.110.0130.05311.20
5.2.100.0100.05711.13
5.2.90.0170.04711.23
5.2.80.0130.05311.11
5.2.70.0170.05311.20
5.2.60.0130.03711.15
5.2.50.0100.04311.09
5.2.40.0030.04711.05
5.2.30.0130.03711.02
5.2.20.0030.04711.01
5.2.10.0130.03710.97
5.2.00.0130.04010.76
5.1.60.0100.03310.02
5.1.50.0130.04310.10
5.1.40.0000.0509.96
5.1.30.0070.04010.44
5.1.20.0070.04310.48
5.1.10.0030.04710.19
5.1.00.0100.05010.26
5.0.50.0200.0278.62
5.0.40.0070.0308.39
5.0.30.0100.0438.41
5.0.20.0030.0308.23
5.0.10.0100.0338.38
5.0.00.0070.0408.30
4.4.90.0070.0205.91
4.4.80.0030.0235.89
4.4.70.0030.0235.86
4.4.60.0000.0275.84
4.4.50.0030.0235.90
4.4.40.0030.0375.90
4.4.30.0030.0235.85
4.4.20.0100.0175.93
4.4.10.0070.0235.93
4.4.00.0070.0335.94
4.3.110.0070.0275.82
4.3.100.0030.0235.85
4.3.90.0030.0235.84
4.3.80.0000.0375.78
4.3.70.0070.0175.87
4.3.60.0000.0235.79
4.3.50.0030.0235.89
4.3.40.0030.0435.80
4.3.30.0030.0305.67
4.3.20.0000.0235.67
4.3.10.0000.0275.67
4.3.00.0170.0207.13

preferences:
87.84 ms | 400 KiB | 5 Q