3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=18556 // Set language to desired language $g_lang = 'tr_TR.iso8859-9'; putenv("LANG=$g_lang"); if (setlocale(LC_ALL, $g_lang) === false) { throw new Exception('Setting locale failed.'); } class InfoBlob { public $foo; function InfoBlob() { $this->foo = "Foo"; } } echo ('Instantiating an infoBlob with a lowercase i<br>'); $foobar = new infoBlob(); echo ($foobar->foo); echo ('<br>Instantiating an InfoBlob with an uppercase I<br>'); $foobar = new InfoBlob(); echo ($foobar->foo);

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.0.0beta10.0030.01416.97
8.0.0alpha30.0140.00416.84
8.0.0alpha20.0060.01316.75
8.0.0alpha10.0090.01516.87
7.4.90.0090.00917.00
7.4.80.0140.00319.39
7.4.70.0060.01116.72
7.4.60.0060.01516.93
7.4.50.0030.00316.84
7.4.40.0090.00622.77
7.4.30.0110.00617.00
7.4.10.0050.01414.38
7.4.00.0120.00514.80
7.3.210.0060.01216.83
7.3.200.0140.00719.39
7.3.190.0070.01316.92
7.3.180.0060.01216.79
7.3.170.0130.00316.72
7.3.160.0120.00316.77
7.3.130.0000.01914.84
7.3.120.0100.00414.95
7.3.110.0130.00614.75
7.3.100.0040.00714.90
7.3.90.0070.01014.59
7.3.80.0030.01014.55
7.3.70.0000.01314.58
7.3.60.0090.00614.66
7.3.50.0000.00914.57
7.3.40.0030.01114.21
7.3.30.0060.00914.61
7.3.20.0120.00016.36
7.3.10.0000.01216.55
7.3.00.0040.01016.56
7.2.330.0090.00916.90
7.2.320.0030.01316.90
7.2.310.0060.01217.11
7.2.300.0100.01016.85
7.2.290.0100.00716.88
7.2.260.0000.01914.87
7.2.250.0070.01015.03
7.2.240.0000.01414.46
7.2.230.0030.01414.77
7.2.220.0110.00414.95
7.2.210.0080.00414.68
7.2.200.0030.01214.69
7.2.190.0040.00715.08
7.2.180.0100.00014.65
7.2.170.0070.00714.72
7.2.160.0060.00614.77
7.2.150.0040.01016.86
7.2.140.0130.00316.66
7.2.130.0000.01416.66
7.2.120.0050.00916.76
7.2.110.0080.00516.79
7.2.100.0070.00916.68
7.2.90.0060.00616.77
7.2.80.0070.00416.75
7.2.70.0080.00316.80
7.2.60.0070.00616.71
7.2.50.0070.00716.73
7.2.40.0030.00916.63
7.2.30.0020.01316.75
7.2.20.0040.01016.98
7.2.10.0010.01116.78
7.2.00.0030.00917.70
7.1.330.0070.00715.63
7.1.320.0120.00615.87
7.1.310.0030.00715.99
7.1.300.0030.01015.80
7.1.290.0090.00015.41
7.1.280.0000.01415.77
7.1.270.0110.00015.89
7.1.260.0080.00415.89
7.1.250.0090.00215.73
7.1.240.0060.00715.59
7.1.230.0040.00615.76
7.1.220.0060.00615.72
7.1.210.0010.01115.70
7.1.200.0040.00715.52
7.1.190.0090.00515.45
7.1.180.0070.00715.75
7.1.170.0050.00615.77
7.1.160.0070.00715.61
7.1.150.0030.00715.74
7.1.140.0050.01115.70
7.1.130.0060.00615.64
7.1.120.0040.00715.76
7.1.110.0050.00515.89
7.1.100.0010.01216.69
7.1.90.0060.00815.47
7.1.80.0050.00615.60
7.1.70.0040.00616.25
7.1.60.0060.00916.85
7.1.50.0080.00816.17
7.1.40.0070.00515.69
7.1.30.0020.01115.76
7.1.20.0050.00915.88
7.1.10.0120.00615.79
7.1.00.0060.01517.87
7.0.330.0040.00715.24
7.0.320.0050.00715.29
7.0.310.0050.00815.38
7.0.300.0000.00815.24
7.0.290.0090.00315.21
7.0.280.0060.00515.32
7.0.270.0040.00715.29
7.0.260.0090.00315.30
7.0.250.0050.00615.39
7.0.240.0070.00315.29
7.0.230.0030.01015.49
7.0.220.0030.00815.26
7.0.210.0040.00915.39
7.0.200.0060.00815.72
7.0.190.0030.01115.32
7.0.180.0050.00715.44
7.0.170.0030.01015.27
7.0.160.0070.00615.18
7.0.150.0060.00515.24
7.0.140.0020.03117.55
7.0.130.0030.00915.38
7.0.120.0040.00915.51
7.0.110.0060.00515.35
7.0.100.0050.00815.40
7.0.90.0060.00415.16
7.0.80.0090.00215.45
7.0.70.0030.00715.63
7.0.60.0110.03017.46
7.0.50.0060.03016.25
7.0.40.0070.02414.96
7.0.30.0070.02714.89
7.0.20.0080.02814.77
7.0.10.0070.02214.83
7.0.00.0090.02914.82
5.6.400.0080.00614.19
5.6.390.0030.01014.48
5.6.380.0060.00514.24
5.6.370.0060.00514.40
5.6.360.0020.00814.37
5.6.350.0070.00513.99
5.6.340.0050.00614.33
5.6.330.0060.01114.27
5.6.320.0050.00714.29
5.6.310.0120.00414.20
5.6.300.0050.00614.34
5.6.290.0070.00714.33
5.6.280.0040.03116.52
5.6.270.0050.00813.96
5.6.260.0050.00614.32
5.6.250.0050.00714.10
5.6.240.0080.00514.26
5.6.230.0060.00814.46
5.6.220.0100.00314.17
5.6.210.0090.02616.35
5.6.200.0070.01815.59
5.6.190.0050.03315.58
5.6.180.0070.02015.41
5.6.170.0090.03315.39
5.6.160.0100.01815.52
5.6.150.0090.01715.43
5.6.140.0070.01815.53
5.6.130.0050.03615.33
5.6.120.0050.03115.59
5.6.110.0080.03115.44
5.6.100.0100.01715.51
5.6.90.0100.02615.64
5.6.80.0090.02715.25
5.6.70.0070.03015.29
5.6.60.0080.03015.20
5.6.50.0070.03015.19
5.6.40.0060.03115.13
5.6.30.0080.01915.34
5.6.20.0040.01915.31
5.6.10.0060.01515.21
5.6.00.0070.02715.27
5.5.380.0060.00512.45
5.5.370.0040.00912.45
5.5.360.0050.00812.48
5.5.350.0080.02215.10
5.5.340.0070.02914.58
5.5.330.0080.02114.47
5.5.320.0050.02914.52
5.5.310.0050.02614.37
5.5.300.0040.01914.31
5.5.290.0040.02414.41
5.5.280.0030.02714.42
5.5.270.0050.02914.59
5.5.260.0040.03414.43
5.5.250.0050.02814.36
5.5.240.0080.01914.24
5.5.230.0030.03314.21
5.5.220.0070.02414.22
5.5.210.0040.02814.14
5.5.200.0080.02814.13
5.5.190.0040.03214.37
5.5.180.0030.02914.18
5.5.170.0040.01112.84
5.5.160.0070.02114.20
5.5.150.0050.03314.21
5.5.140.0090.03114.23
5.5.130.0050.02914.13
5.5.120.0020.03314.17
5.5.110.0050.02214.32
5.5.100.0040.02014.06
5.5.90.0050.02914.01
5.5.80.0040.02014.18
5.5.70.0060.02814.00
5.5.60.0090.01514.12
5.5.50.0020.02914.15
5.5.40.0030.03214.00
5.5.30.0050.01614.21
5.5.20.0100.01214.13
5.5.10.0110.02414.13
5.5.00.0040.01713.99
5.4.450.0120.02414.61
5.4.440.0050.03114.52
5.4.430.0080.02914.60
5.4.420.0070.02914.58
5.4.410.0080.02714.43
5.4.400.0050.02114.34
5.4.390.0050.03014.47
5.4.380.0040.02514.54
5.4.370.0050.03114.58
5.4.360.0060.02914.43
5.4.350.0040.02814.49
5.4.340.0080.01714.51
5.4.330.0090.00212.01
5.4.320.0050.02014.31
5.4.310.0020.02514.50
5.4.300.0070.02114.46
5.4.290.0020.02914.46
5.4.280.0060.02614.43
5.4.270.0040.02414.38
5.4.260.0090.01914.44
5.4.250.0060.01514.44
5.4.240.0060.02814.45
5.4.230.0010.01914.39
5.4.220.0050.02914.41
5.4.210.0090.02314.45
5.4.200.0050.02814.44
5.4.190.0080.02814.38
5.4.180.0050.02614.38
5.4.170.0090.01514.34
5.4.160.0050.02114.44
5.4.150.0040.02114.45
5.4.140.0080.01913.65
5.4.130.0050.03013.61
5.4.120.0070.02913.57
5.4.110.0070.01613.57
5.4.100.0090.02313.67
5.4.90.0060.02613.64
5.4.80.0000.01813.65
5.4.70.0030.01613.63
5.4.60.0020.01813.65
5.4.50.0070.01313.46
5.4.40.0040.02113.54
5.4.30.0020.02213.58
5.4.20.0040.02813.61
5.4.10.0080.02213.54
5.4.00.0070.02713.32
5.3.290.0100.03412.69
5.3.280.0010.03912.56
5.3.270.0120.03012.55
5.3.260.0090.03512.67
5.3.250.0030.03212.63
5.3.240.0060.02812.49
5.3.230.0110.02612.47
5.3.220.0030.02512.59
5.3.210.0050.02112.44
5.3.200.0080.01512.63
5.3.190.0050.02712.63
5.3.180.0000.02612.74
5.3.170.0060.04112.65
5.3.160.0080.04112.44
5.3.150.0030.02912.61
5.3.140.0070.03412.62
5.3.130.0060.03612.60
5.3.120.0030.03612.71
5.3.110.0060.03312.60
5.3.100.0070.03812.29
5.3.90.0090.03712.42
5.3.80.0060.02412.28
5.3.70.0070.03712.13
5.3.60.0100.03712.32
5.3.50.0100.02312.22
5.3.40.0080.03812.20
5.3.30.0120.03512.29
5.3.20.0050.03812.15
5.3.10.0100.02511.95
5.3.00.0100.02912.13
5.2.170.0070.03210.42
5.2.160.0100.02810.33
5.2.150.0090.03210.32
5.2.140.0070.02410.23
5.2.130.0050.03410.35
5.2.120.0060.02610.23
5.2.110.0110.03010.25
5.2.100.0100.02810.34
5.2.90.0060.02810.35
5.2.80.0050.03310.30
5.2.70.0060.02610.30
5.2.60.0050.03110.29
5.2.50.0110.03210.30
5.2.40.0030.02810.36
5.2.30.0050.03310.27
5.2.20.0030.03510.15
5.2.10.0040.01510.08
5.2.00.0030.0149.85
5.1.60.0050.0139.32
5.1.50.0060.0109.18
5.1.40.0020.0159.30
5.1.30.0030.0139.61
5.1.20.0020.0159.52
5.1.10.0080.0109.32
5.1.00.0030.0139.17
5.0.50.0030.0128.35
5.0.40.0030.0128.20
5.0.30.0050.0148.18
5.0.20.0030.0098.18
5.0.10.0020.0128.20
5.0.00.0020.0178.13
4.4.90.0070.0177.93
4.4.80.0020.0187.93
4.4.70.0000.0217.93
4.4.60.0020.0127.93
4.4.50.0000.0107.93
4.4.40.0010.0137.93
4.4.30.0030.0087.93
4.4.20.0000.0107.93
4.4.10.0020.0087.93
4.4.00.0000.0157.93
4.3.110.0050.0107.93
4.3.100.0020.0097.93
4.3.90.0020.0107.93
4.3.80.0020.0137.93
4.3.70.0000.0107.93
4.3.60.0010.0087.93
4.3.50.0000.0117.93
4.3.40.0030.0117.93
4.3.30.0000.0107.93
4.3.20.0000.0107.93
4.3.10.0040.0087.93
4.3.00.0020.0087.93