3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { public static function outX() { echo self::$test; } } class bar { use foo; public static $test = 'ololo2'; public static function out() { self::outX(); } } class baz extends bar { public static $test = 'ololo3'; public static function out2() { self::outX(); } } bar::out(); baz::out();

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.0090.01216.61
8.3.50.0100.00921.92
8.3.40.0070.01018.67
8.3.30.0110.00418.96
8.3.20.0040.00420.20
8.3.10.0070.00321.60
8.3.00.0080.00019.13
8.2.180.0060.00918.18
8.2.170.0120.00322.96
8.2.160.0070.00720.42
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.13
8.2.110.0070.00419.00
8.2.100.0080.00417.63
8.2.90.0000.00818.92
8.2.80.0080.00017.97
8.2.70.0000.00917.50
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0030.00618.02
8.2.30.0000.00818.06
8.2.20.0000.00817.66
8.2.10.0040.00417.94
8.2.00.0000.00717.61
8.1.280.0090.00625.92
8.1.270.0030.00518.93
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.80
8.1.230.0000.01117.66
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0080.00020.81
8.1.160.0000.00721.88
8.1.150.0040.00418.80
8.1.140.0050.00217.25
8.1.130.0070.00317.77
8.1.120.0060.00317.39
8.1.110.0040.00417.27
8.1.100.0000.00717.37
8.1.90.0050.00317.34
8.1.80.0080.00017.41
8.1.70.0000.00717.36
8.1.60.0040.00417.50
8.1.50.0030.00517.47
8.1.40.0030.00617.38
8.1.30.0050.00317.57
8.1.20.0040.00417.57
8.1.10.0070.00017.40
8.1.00.0070.00017.45
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0050.00318.39
8.0.270.0030.00317.26
8.0.260.0000.00617.26
8.0.250.0000.00717.01
8.0.240.0040.00416.91
8.0.230.0070.00016.96
8.0.220.0030.00316.85
8.0.210.0060.00316.84
8.0.200.0000.00816.93
8.0.190.0000.00716.86
8.0.180.0000.00816.89
8.0.170.0040.00416.93
8.0.160.0040.00416.87
8.0.150.0030.00316.79
8.0.140.0070.00016.85
8.0.130.0020.00613.40
8.0.120.0000.00816.90
8.0.110.0050.00216.82
8.0.100.0000.00716.82
8.0.90.0070.00016.68
8.0.80.0090.01316.84
8.0.70.0050.00216.67
8.0.60.0040.00416.65
8.0.50.0040.00416.71
8.0.30.0090.01217.03
8.0.20.0150.00817.40
8.0.10.0000.00716.94
8.0.00.0120.00616.78
7.4.330.0050.00015.03
7.4.320.0070.00016.45
7.4.300.0020.00516.44
7.4.290.0040.00816.50
7.4.280.0000.00716.41
7.4.270.0070.00016.65
7.4.260.0030.00316.62
7.4.250.0040.00416.57
7.4.240.0070.00016.59
7.4.230.0000.00716.62
7.4.220.0090.00916.38
7.4.210.0070.01016.47
7.4.200.0000.00716.32
7.4.160.0040.01116.39
7.4.150.0090.01317.40
7.4.140.0080.01117.86
7.4.130.0090.00816.46
7.4.120.0090.00916.59
7.4.110.0100.01316.47
7.4.100.0110.01116.59
7.4.90.0070.01116.45
7.4.80.0130.00919.39
7.4.70.0100.00716.52
7.4.60.0100.00716.48
7.4.50.0040.00416.30
7.4.40.0120.00316.25
7.4.30.0000.01616.20
7.4.00.0170.00015.04
7.3.330.0000.00613.31
7.3.320.0000.01413.15
7.3.310.0070.00016.29
7.3.300.0030.00316.27
7.3.290.0000.00716.26
7.3.280.0100.00916.27
7.3.270.0120.00617.40
7.3.260.0040.01716.28
7.3.250.0090.00816.28
7.3.240.0090.00816.24
7.3.230.0070.01416.41
7.3.210.0100.00716.20
7.3.200.0070.01419.39
7.3.190.0000.01616.23
7.3.180.0100.00616.37
7.3.170.0040.01416.28
7.3.160.0030.01316.25
7.3.10.0040.01216.42
7.3.00.0040.01216.70
7.2.330.0090.01216.73
7.2.320.0140.00316.64
7.2.310.0060.01316.36
7.2.300.0170.00716.54
7.2.290.0160.00716.45
7.2.130.0130.00016.86
7.2.120.0090.00616.58
7.2.110.0040.01116.66
7.2.100.0090.00316.65
7.2.90.0100.00716.86
7.2.80.0070.00716.92
7.2.70.0060.00616.84
7.2.60.0060.00716.92
7.2.50.0030.00616.59
7.2.40.0060.00916.86
7.2.30.0060.00917.03
7.2.20.0030.01016.65
7.2.10.0090.00316.92
7.2.00.0080.00718.04
7.1.250.0110.00015.47
7.1.200.0040.00715.52
7.1.100.0070.00718.06
7.1.70.0110.00417.07
7.1.60.0070.01819.50
7.1.50.0190.01634.76
7.1.00.0000.07722.57
7.0.200.0210.00616.29
7.0.140.0030.07321.98
7.0.60.0100.07719.97
7.0.50.0070.06017.71
7.0.40.0030.04320.20
7.0.30.0270.04020.08
7.0.20.0200.06320.07
7.0.10.0370.05720.15
7.0.00.0030.09720.11
5.6.280.0030.07020.93
5.6.210.0030.08020.45
5.6.200.0100.07318.25
5.6.190.0070.09020.45
5.6.180.0270.08020.46
5.6.170.0300.07320.54
5.6.160.0030.08720.57
5.6.150.0130.07018.18
5.6.140.0030.04718.18
5.6.130.0070.07318.23
5.6.120.0000.04321.00
5.6.110.0130.08021.00
5.6.100.0100.08021.00
5.6.90.0100.05720.99
5.6.80.0130.07720.52
5.6.70.0400.05720.53
5.5.350.0130.04020.31
5.5.340.0130.07318.02
5.5.330.0030.04320.27
5.5.320.0000.09020.19
5.5.310.0330.07320.28
5.5.300.0000.04317.99
5.5.290.0070.08018.03
5.5.280.0070.04020.97
5.5.270.0200.07020.77
5.5.260.0100.08020.87
5.5.250.0000.08720.62
5.5.240.0070.04320.24
5.4.450.0670.06719.54
5.4.440.0930.06719.44
5.4.430.0500.06719.68
5.4.420.0800.05319.47
5.4.410.0900.06719.35
5.4.400.0270.05018.76
5.4.390.0370.05018.47
5.4.380.0330.06718.75
5.4.370.0230.06018.50
5.4.360.0400.04318.59
5.4.350.0330.04718.59
5.4.340.0270.05018.84
5.4.320.0130.06318.80
5.4.310.0170.07018.73
5.4.300.0270.05718.61
5.4.290.0230.05018.83
5.4.280.0270.05318.49
5.4.270.0270.06318.74
5.4.260.0200.06318.55
5.4.250.0300.06318.49
5.4.240.0270.07718.72
5.4.230.0300.06718.45
5.4.220.0200.07318.75
5.4.210.0130.07018.45
5.4.200.0170.06016.51
5.4.190.0230.05718.55
5.4.180.0230.06718.74
5.4.170.0230.06718.80
5.4.160.0270.06318.59
5.4.150.0230.06018.51
5.4.140.0370.06316.47
5.4.130.0400.05316.18
5.4.120.0270.05716.39
5.4.110.0130.06016.25
5.4.100.0330.04716.36
5.4.90.0230.06716.25
5.4.80.0300.05716.26
5.4.70.0170.06316.41
5.4.60.0370.05316.23
5.4.50.0200.06016.24
5.4.40.0300.05316.11
5.4.30.0230.05316.25
5.4.20.0270.06316.20
5.4.10.0370.07016.21
5.4.00.0270.05315.89
5.3.290.0230.07314.63
5.3.280.0400.04714.54
5.3.270.0170.06714.57
5.3.260.0300.06314.61
5.3.250.0300.06714.59
5.3.240.0230.05714.70
5.3.230.0230.05714.59
5.3.220.0200.06014.57
5.3.210.0270.05714.50
5.3.200.0200.07714.46
5.3.190.0230.07014.48
5.3.180.0270.07014.50
5.3.170.0270.04714.49
5.3.160.0170.05714.44
5.3.150.0200.05714.51
5.3.140.0200.05314.57
5.3.130.0270.06014.55
5.3.120.0130.06314.44
5.3.110.0300.06014.65
5.3.100.0300.05314.02
5.3.90.0200.06314.10
5.3.80.0230.06314.00
5.3.70.0370.04714.09
5.3.60.0230.05014.07
5.3.50.0330.04713.86
5.3.40.0300.06713.84
5.3.30.0200.05313.94
5.3.20.0330.04713.67
5.3.10.0230.06313.59
5.3.00.0300.05713.75
5.2.170.0130.05311.09
5.2.160.0170.04011.17
5.2.150.0200.04711.11
5.2.140.0200.04711.12
5.2.130.0100.05011.25
5.2.120.0170.04011.03
5.2.110.0230.05011.02
5.2.100.0170.06011.14
5.2.90.0170.05711.06
5.2.80.0300.04711.15
5.2.70.0170.05011.02
5.2.60.0170.05011.05
5.2.50.0200.04311.07
5.2.40.0130.06010.91
5.2.30.0200.05310.96
5.2.20.0270.05010.99
5.2.10.0170.04710.87
5.2.00.0100.06010.77
5.1.60.0130.05010.13
5.1.50.0200.04310.01
5.1.40.0230.0379.98
5.1.30.0230.03710.37
5.1.20.0100.04310.37
5.1.10.0200.04010.05
5.1.00.0200.04710.11
5.0.50.0070.0339.98
5.0.40.0070.0309.98
5.0.30.0130.0409.98
5.0.20.0170.0279.98
5.0.10.0100.0309.98
5.0.00.0130.0439.98
4.4.90.0200.0209.98
4.4.80.0130.0179.98
4.4.70.0170.0179.98
4.4.60.0030.0309.98
4.4.50.0070.0309.98
4.4.40.0030.0439.98
4.4.30.0070.0239.98
4.4.20.0070.0239.98
4.4.10.0200.0109.98
4.4.00.0170.0339.98
4.3.110.0070.0279.98
4.3.100.0030.0339.98
4.3.90.0130.0179.98
4.3.80.0030.0409.98
4.3.70.0170.0239.98
4.3.60.0100.0279.98
4.3.50.0070.0239.98
4.3.40.0100.0339.98
4.3.30.0030.0239.98
4.3.20.0070.0239.98
4.3.10.0070.0309.98
4.3.00.0170.0177.09

preferences:
50.24 ms | 401 KiB | 5 Q