3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { static private $hackyhack = false; function __construct() { if (self::$hackyhack == false) { throw new Exception("The cure seems worse than the disease."); } self::$hackyhack = false; } static function makeFoo() { self::$hackyhack = true; $instance = new foo(); return $instance; } } $instance = foo::makeFoo();

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.40.0150.00618.50
8.3.30.0150.00019.27
8.3.20.0000.00820.21
8.3.10.0080.00021.85
8.3.00.0040.00418.95
8.2.170.0070.00722.96
8.2.160.0100.00322.20
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00419.76
8.2.110.0090.00022.19
8.2.100.0070.00418.03
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0000.00819.88
8.2.30.0000.00718.05
8.2.20.0040.00417.50
8.2.10.0000.00817.93
8.2.00.0000.00717.68
8.1.270.0040.00418.87
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00324.02
8.1.230.0070.00419.20
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0060.00317.13
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0050.00221.93
8.1.150.0040.00418.78
8.1.140.0040.00417.36
8.1.130.0080.00017.86
8.1.120.0030.00317.52
8.1.110.0000.00717.45
8.1.100.0000.00717.34
8.1.90.0050.00217.38
8.1.80.0040.00417.32
8.1.70.0070.00017.46
8.1.60.0030.00617.52
8.1.50.0000.00817.55
8.1.40.0030.00617.46
8.1.30.0000.00817.60
8.1.20.0060.00317.64
8.1.10.0050.00317.50
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.48
8.0.270.0030.00517.36
8.0.260.0030.00317.13
8.0.250.0030.00316.93
8.0.240.0060.00316.90
8.0.230.0030.00316.84
8.0.220.0030.00316.93
8.0.210.0000.00816.79
8.0.200.0000.00816.98
8.0.190.0040.00416.91
8.0.180.0030.00616.94
8.0.170.0070.00016.80
8.0.160.0080.00016.86
8.0.150.0070.00016.88
8.0.140.0040.00416.75
8.0.130.0030.00313.27
8.0.120.0080.00016.76
8.0.110.0000.00716.80
8.0.100.0040.00416.71
8.0.90.0050.00316.91
8.0.80.0070.01416.83
8.0.70.0000.00916.75
8.0.60.0040.00416.90
8.0.50.0040.00416.75
8.0.30.0110.01517.00
8.0.20.0080.01017.40
8.0.10.0040.00417.05
8.0.00.0050.01516.90
7.4.330.0050.00015.07
7.4.320.0000.00616.40
7.4.300.0040.00416.60
7.4.290.0000.00616.50
7.4.280.0040.00416.57
7.4.270.0030.00616.52
7.4.260.0000.00716.50
7.4.250.0050.00316.33
7.4.240.0020.00516.53
7.4.230.0070.00016.62
7.4.220.0060.01916.59
7.4.210.0060.01316.46
7.4.200.0030.00316.67
7.4.160.0210.00016.51
7.4.150.0150.00317.40
7.4.140.0140.00317.86
7.4.130.0110.00516.44
7.4.120.0040.01316.42
7.4.110.0070.01016.63
7.4.100.0080.00816.58
7.4.90.0160.00316.46
7.4.80.0080.01219.39
7.4.70.0120.00416.44
7.4.60.0080.00816.44
7.4.50.0030.00516.71
7.4.40.0150.00616.44
7.4.30.0060.01216.50
7.4.00.0100.00915.00
7.3.330.0020.00213.16
7.3.320.0000.00513.17
7.3.310.0040.00416.15
7.3.300.0000.00616.21
7.3.290.0090.00716.28
7.3.280.0080.00716.30
7.3.270.0060.01317.40
7.3.260.0080.00816.46
7.3.250.0090.00816.34
7.3.240.0170.00316.46
7.3.230.0060.01216.39
7.3.210.0030.01316.27
7.3.200.0090.01519.39
7.3.190.0030.01316.50
7.3.180.0090.00716.56
7.3.170.0040.01216.50
7.3.160.0150.00616.41
7.3.120.0070.01014.75
7.3.110.0030.01314.61
7.3.100.0050.01014.62
7.3.90.0050.00914.61
7.3.80.0080.00714.83
7.3.70.0040.00714.80
7.3.60.0090.00614.75
7.3.50.0040.00814.62
7.3.40.0020.01114.53
7.3.30.0060.00714.52
7.3.20.0030.00916.49
7.3.10.0050.00916.39
7.3.00.0050.01016.39
7.2.330.0090.00916.64
7.2.320.0140.01416.86
7.2.310.0120.00916.80
7.2.300.0090.01316.84
7.2.290.0110.00916.78
7.2.250.0050.01214.98
7.2.240.0080.01215.06
7.2.230.0020.01515.00
7.2.220.0080.00515.06
7.2.210.0060.01015.05
7.2.200.0060.00714.92
7.2.190.0080.00815.00
7.2.180.0040.00915.16
7.2.170.0020.01414.88
7.2.60.0060.00916.85
7.2.00.0000.01019.62
7.1.330.0030.01015.72
7.1.320.0060.00415.48
7.1.310.0070.00715.55
7.1.300.0050.00415.66
7.1.290.0080.00415.41
7.1.280.0040.00615.76
7.1.270.0000.01215.63
7.1.260.0040.01215.53
7.1.200.0060.00315.64
7.1.100.0040.00818.21
7.1.70.0060.00317.09
7.1.60.0030.02019.46
7.1.50.0240.01434.82
7.1.00.0030.07722.31
7.0.200.0070.00016.73
7.0.140.0000.03721.95
7.0.60.0030.04719.93
7.0.50.0130.07017.85
7.0.40.0070.09320.32
7.0.30.0270.04020.24
7.0.20.0070.05020.33
7.0.10.0130.03720.23
7.0.00.0030.06320.22
5.6.280.0000.07321.07
5.6.210.0070.08720.67
5.6.200.0070.05318.19
5.6.190.0130.08020.47
5.6.180.0230.03720.59
5.6.170.0270.07020.62
5.6.160.0030.06320.48
5.6.150.0070.04718.11
5.6.140.0070.08018.18
5.6.130.0100.08018.28
5.6.120.0070.04721.11
5.6.110.0030.09020.96
5.6.100.0070.07720.89
5.6.90.0000.04721.00
5.6.80.0070.05020.54
5.5.350.0000.05020.38
5.5.340.0070.07718.00
5.5.330.0070.05320.21
5.5.320.0570.05020.27
5.5.310.0300.05320.23
5.5.300.0000.05018.03
5.5.290.0130.05318.08
5.5.280.0030.05020.74
5.5.270.0170.07320.97
5.5.260.0100.08720.73
5.5.250.0130.07320.68
5.5.240.4100.04020.37
5.4.450.0170.06019.25
5.4.440.0130.08019.62
5.4.430.0170.05019.52
5.4.420.0230.04019.41
5.4.410.0070.05719.57
5.4.400.0270.05719.23
5.4.390.0200.05318.61
5.4.380.0230.05018.61
5.4.370.0300.05718.72
5.4.360.0170.05718.57
5.4.350.0300.05018.79
5.4.340.0230.05318.58
5.4.320.0170.06318.56
5.4.310.0230.05318.58
5.4.300.0230.05718.75
5.4.290.0100.06018.72
5.4.280.0200.05018.70
5.4.270.0200.05318.51
5.4.260.0330.05318.82
5.4.250.0130.06018.80
5.4.240.0130.06318.69
5.4.230.0070.06018.71
5.4.220.0200.05718.45
5.4.210.0200.06318.77
5.4.200.0300.04316.61
5.4.190.0170.05318.82
5.4.180.0230.06718.55
5.4.170.0200.05318.73
5.4.160.0230.04718.55
5.4.150.0330.06018.76
5.4.140.0300.06016.28
5.4.130.0100.05716.29
5.4.120.0300.06016.30
5.4.110.0230.06316.42
5.4.100.0300.06016.26
5.4.90.0100.06016.42
5.4.80.0300.04016.27
5.4.70.0170.06016.27
5.4.60.0200.06316.23
5.4.50.0200.05716.41
5.4.40.0200.06016.30
5.4.30.0130.06316.18
5.4.20.0170.05316.14
5.4.10.0300.03716.29
5.4.00.0070.07315.71
5.3.290.0130.06314.74
5.3.280.0100.05714.59
5.3.270.0270.04314.74
5.3.260.0070.06714.65
5.3.250.0170.07314.79
5.3.240.0200.06314.66
5.3.230.0170.06014.80
5.3.220.0170.06014.61
5.3.210.0130.06014.55
5.3.200.0230.04714.67
5.3.190.0100.05714.75
5.3.180.0270.05714.77
5.3.170.0170.05314.59
5.3.160.0200.05714.79
5.3.150.0170.05014.58
5.3.140.0130.06314.67
5.3.130.0030.07014.77
5.3.120.0300.06014.59
5.3.110.0170.07314.71
5.3.100.0130.06314.26
5.3.90.0230.04314.21
5.3.80.0130.05314.09
5.3.70.0130.05714.04
5.3.60.0200.05014.07
5.3.50.0130.07314.17
5.3.40.0030.08014.07
5.3.30.0030.06013.95
5.3.20.0100.07313.80
5.3.10.0100.07013.64
5.3.00.0200.05013.81
5.2.170.0130.04711.37
5.2.160.0100.04711.19
5.2.150.0030.05711.27
5.2.140.0100.04711.21
5.2.130.0130.05011.18
5.2.120.0170.04011.21
5.2.110.0170.05711.09
5.2.100.0200.04011.11
5.2.90.0130.04311.23
5.2.80.0200.05311.17
5.2.70.0230.05011.31
5.2.60.0130.06011.13
5.2.50.0130.05011.13
5.2.40.0130.04011.11
5.2.30.0130.05311.08
5.2.20.0130.04710.96
5.2.10.0230.04711.05
5.2.00.0170.05710.72
5.1.60.0100.03310.18
5.1.50.0030.05310.00
5.1.40.0100.0479.98
5.1.30.0170.04710.34
5.1.20.0170.04710.39
5.1.10.0170.04010.11
5.1.00.0200.03310.11
5.0.50.0100.0278.76
5.0.40.0070.0278.48
5.0.30.0070.0478.25
5.0.20.0030.0378.31
5.0.10.0130.0278.36
5.0.00.0030.0478.19
4.4.90.0130.0175.88
4.4.80.0130.0235.88
4.4.70.0100.0275.91
4.4.60.0030.0235.87
4.4.50.0070.0305.92
4.4.40.0100.0376.00
4.4.30.0030.0235.93
4.4.20.0070.0235.94
4.4.10.0130.0175.98
4.4.00.0070.0376.00
4.3.110.0030.0275.81
4.3.100.0070.0235.81
4.3.90.0100.0205.84
4.3.80.0070.0335.79
4.3.70.0130.0135.89
4.3.60.0070.0275.78
4.3.50.0030.0335.81
4.3.40.0100.0405.75
4.3.30.0030.0304.66
4.3.20.0100.0234.66
4.3.10.0030.0274.66
4.3.00.0030.02312.49

preferences:
39.49 ms | 400 KiB | 5 Q