3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $value = 2; public function __construct() { $this->$value = 3; } public static function outputTimesFive() { echo self::$value * 5; } } $a = new Test(); echo Test::outputTimesFive();

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.00418.29
8.3.50.0130.00522.11
8.3.40.0040.01118.79
8.3.30.0110.00319.13
8.3.20.0040.00420.25
8.3.10.0070.00021.85
8.3.00.0050.00317.80
8.2.180.0090.00616.50
8.2.170.0140.00022.96
8.2.160.0130.00320.43
8.2.150.0080.00024.18
8.2.140.0070.00324.66
8.2.130.0110.00726.16
8.2.120.0040.00420.86
8.2.110.0000.00822.26
8.2.100.0030.01017.72
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0040.00417.91
8.2.30.0040.00418.13
8.2.20.0040.00417.64
8.2.10.0040.00418.04
8.2.00.0040.00417.62
8.1.280.0000.01425.92
8.1.270.0080.00024.01
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00623.83
8.1.230.0090.00319.00
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0050.00318.65
8.1.160.0040.00422.00
8.1.150.0070.00018.95
8.1.140.0000.00717.50
8.1.130.0000.00717.71
8.1.120.0030.00317.52
8.1.110.0000.00817.51
8.1.100.0040.00417.45
8.1.90.0000.00717.39
8.1.80.0070.00017.36
8.1.70.0040.00417.46
8.1.60.0060.00317.55
8.1.50.0040.00417.51
8.1.40.0000.00717.42
8.1.30.0000.00817.64
8.1.20.0040.00417.63
8.1.10.0080.00017.52
8.1.00.0000.00717.54
8.0.300.0060.00318.77
8.0.290.0100.00016.75
8.0.280.0040.00418.39
8.0.270.0050.00317.18
8.0.260.0000.00717.20
8.0.250.0000.00717.02
8.0.240.0030.00317.03
8.0.230.0000.00716.98
8.0.220.0030.00316.94
8.0.210.0060.00016.84
8.0.200.0060.00016.91
8.0.190.0040.00416.93
8.0.180.0000.00816.96
8.0.170.0020.00517.00
8.0.160.0040.00416.96
8.0.150.0040.00416.88
8.0.140.0030.00716.89
8.0.130.0030.00313.36
8.0.120.0000.00816.84
8.0.110.0070.00016.89
8.0.100.0030.00516.74
8.0.90.0070.00017.00
8.0.80.0030.01216.92
8.0.70.0040.00416.85
8.0.60.0040.00416.86
8.0.50.0050.00217.06
8.0.30.0080.01117.15
8.0.20.0130.00517.40
8.0.10.0050.00317.12
8.0.00.0110.00716.81
7.4.330.0050.00015.00
7.4.320.0030.00316.52
7.4.300.0030.00316.52
7.4.290.0110.00016.56
7.4.280.0070.00016.50
7.4.270.0030.00316.44
7.4.260.0040.00416.50
7.4.250.0070.00016.59
7.4.240.0020.00616.52
7.4.230.0030.00316.68
7.4.220.0090.00916.59
7.4.210.0070.00716.61
7.4.200.0070.00016.64
7.4.160.0090.00916.41
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0100.00616.49
7.4.120.0050.01216.50
7.4.110.0160.00616.53
7.4.100.0100.01116.51
7.4.90.0070.01016.70
7.4.80.0080.01319.39
7.4.70.0160.00016.43
7.4.60.0110.00916.61
7.4.50.0000.00416.50
7.4.40.0110.00516.58
7.4.30.0030.01316.57
7.4.00.0080.00715.21
7.3.330.0030.00313.45
7.3.320.0000.00513.35
7.3.310.0060.00016.32
7.3.300.0040.00416.29
7.3.290.0030.01216.44
7.3.280.0080.00816.43
7.3.270.0090.00917.40
7.3.260.0070.01116.39
7.3.250.0130.00816.46
7.3.240.0100.01016.44
7.3.230.0140.00316.50
7.3.210.0100.00716.54
7.3.200.0080.00919.39
7.3.190.0100.01316.37
7.3.180.0000.01616.52
7.3.170.0080.01216.39
7.3.160.0100.00616.55
7.3.120.0070.01014.97
7.3.110.0030.00814.70
7.3.100.0100.00314.60
7.3.90.0150.00314.82
7.3.80.0000.01714.66
7.3.70.0090.00614.80
7.3.60.0030.01014.93
7.3.50.0030.01014.80
7.3.40.0030.01314.94
7.3.30.0040.01214.86
7.3.20.0000.01416.52
7.3.10.0090.00516.59
7.3.00.0050.01016.89
7.2.330.0160.00616.66
7.2.320.0100.00716.70
7.2.310.0070.01016.44
7.2.300.0090.00916.45
7.2.290.0080.00816.30
7.2.250.0040.01115.05
7.2.240.0100.01014.93
7.2.230.0040.01214.61
7.2.220.0100.00715.12
7.2.210.0090.00615.01
7.2.200.0040.01215.02
7.2.190.0090.00015.08
7.2.180.0000.01314.90
7.2.170.0130.00314.97
7.2.130.0070.01016.55
7.2.120.0040.01416.59
7.2.110.0090.00616.70
7.2.100.0090.00616.71
7.2.90.0090.00616.62
7.2.80.0100.00516.75
7.2.70.0110.00016.70
7.2.60.0100.00616.89
7.2.50.0100.00716.86
7.2.40.0070.00716.81
7.2.30.0040.01216.72
7.2.20.0040.01416.95
7.2.10.0070.00716.83
7.2.00.0050.01018.07
7.1.330.0090.00615.66
7.1.320.0070.01015.78
7.1.310.0140.00015.65
7.1.300.0030.01015.77
7.1.290.0070.00715.57
7.1.280.0040.01215.67
7.1.270.0080.00815.73
7.1.260.0000.00915.62
7.1.250.0060.00715.46
7.1.200.0050.00315.78
7.1.100.0060.00917.67
7.1.70.0000.00816.93
7.1.60.0130.01019.25
7.1.50.0070.01816.53
7.1.00.0030.07722.36
7.0.200.0030.00716.71
7.0.140.0030.07322.13
7.0.60.0100.07019.93
7.0.50.0100.05017.83
7.0.40.0070.06720.25
7.0.30.0230.04020.10
7.0.20.0430.06720.12
7.0.10.0070.05720.12
7.0.00.0070.05020.24
5.6.210.0070.06020.65
5.6.200.0170.07718.12
5.6.190.0000.04720.77
5.6.180.0300.03720.52
5.6.170.0300.04320.47
5.6.160.0100.05720.52
5.6.150.0030.04718.18
5.6.140.0130.07718.19
5.6.130.0200.07318.26
5.6.120.0170.04721.10
5.6.110.0070.05720.98
5.6.100.0070.03720.98
5.6.90.0130.07321.13
5.6.80.0070.07020.54
5.5.350.0170.08320.48
5.5.340.0100.07718.08
5.5.330.0200.06720.26
5.5.320.0430.04320.34
5.5.310.0300.05720.27
5.5.300.0130.08017.94
5.5.290.0100.05717.98
5.5.280.0030.06020.80
5.5.270.0200.07320.74
5.5.260.0100.04320.76
5.5.250.0000.05720.70
5.5.240.0070.08020.27
5.4.450.0370.03319.43
5.4.440.0230.03319.34
5.4.430.0900.03019.39
5.4.420.0370.04019.54
5.4.410.0030.03019.42
5.4.400.0470.03318.88
5.4.390.1100.03719.09
5.4.380.0270.05018.78
5.4.370.0100.05718.67
5.4.360.0170.04718.61
5.4.350.0100.05718.64
5.4.340.0130.05018.74
5.4.320.0060.03612.50
5.4.310.0080.04012.50
5.4.300.0080.03512.51
5.4.290.0060.03912.50
5.4.280.0040.03712.40
5.4.270.0060.03612.40
5.4.260.0040.04012.40
5.4.250.0080.03512.39
5.4.240.0080.03412.39
5.4.230.0060.03812.39
5.4.220.0050.05012.39
5.4.210.0080.04812.39
5.4.200.0070.04012.39
5.4.190.0070.03512.39
5.4.180.0060.03612.39
5.4.170.0050.03612.40
5.4.160.0070.03712.40
5.4.150.0050.03712.39
5.4.140.0040.03912.07
5.4.130.0040.03812.06
5.4.120.0040.03712.02
5.4.110.0070.03512.02
5.4.100.0070.03912.02
5.4.90.0030.03912.02
5.4.80.0070.03512.02
5.4.70.0060.03412.01
5.4.60.0050.04012.01
5.4.50.0070.03312.01
5.4.40.0060.03512.00
5.4.30.0060.03512.00
5.4.20.0060.03512.00
5.4.10.0070.03312.00
5.4.00.0060.03611.49
5.3.290.0070.03812.80
5.3.280.0040.03912.71
5.3.270.0090.03612.72
5.3.260.0090.05012.72
5.3.250.0050.03712.72
5.3.240.0070.03512.71
5.3.230.0050.03812.71
5.3.220.0090.03312.68
5.3.210.0060.03812.68
5.3.200.0040.03912.68
5.3.190.0080.03512.68
5.3.180.0090.03312.67
5.3.170.0090.03412.67
5.3.160.0040.03812.68
5.3.150.0060.03612.68
5.3.140.0090.03312.66
5.3.130.0070.03612.66
5.3.120.0060.03812.66
5.3.110.0050.03912.66
5.3.100.0060.03612.12
5.3.90.0040.03812.10
5.3.80.0090.03912.09
5.3.70.0070.03512.10
5.3.60.0020.04012.08
5.3.50.0040.03812.03
5.3.40.0060.03712.04
5.3.30.0060.03511.99
5.3.20.0020.03911.77
5.3.10.0090.03811.73
5.3.00.0020.03911.72
5.2.170.0060.0299.23
5.2.160.0040.0299.23
5.2.150.0020.0339.23
5.2.140.0070.0289.22
5.2.130.0050.0299.18
5.2.120.0070.0349.19
5.2.110.0060.0339.19
5.2.100.0030.0319.19
5.2.90.0040.0309.18
5.2.80.0060.0299.19
5.2.70.0080.0269.18
5.2.60.0070.0279.13
5.2.50.0020.0329.10
5.2.40.0040.0299.08
5.2.30.0050.0309.06
5.2.20.0040.0299.04
5.2.10.0040.0288.95
5.2.00.0090.0288.81
5.1.60.0010.0278.09
5.1.50.0020.0278.09
5.1.40.0030.0268.07
5.1.30.0050.0258.42
5.1.20.0050.0288.45
5.1.10.0070.0258.16
5.1.00.0050.0248.16
5.0.50.0030.0206.64
5.0.40.0030.0196.50
5.0.30.0030.0316.32
5.0.20.0030.0206.28
5.0.10.0050.0216.26
5.0.00.0020.0346.25
4.4.90.0010.0194.77
4.4.80.0020.0174.75
4.4.70.0030.0204.76
4.4.60.0060.0174.76
4.4.50.0040.0164.77
4.4.40.0030.0294.71
4.4.30.0040.0164.76
4.4.20.0020.0184.84
4.4.10.0030.0164.84
4.4.00.0020.0274.76
4.3.110.0010.0194.67
4.3.100.0010.0164.67
4.3.90.0040.0134.63
4.3.80.0010.0264.58
4.3.70.0030.0154.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0010.0254.54
4.3.30.0060.0183.30
4.3.20.0030.0193.28
4.3.10.0070.0163.23
4.3.00.0000.02015.25

preferences:
40.9 ms | 401 KiB | 5 Q