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.UTF-8'; 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.0160.00917.10
8.0.0alpha30.0100.01617.22
8.0.0alpha20.0070.01916.91
8.0.0alpha10.0130.01316.83
7.4.90.0070.01017.04
7.4.80.0180.00719.39
7.4.70.0060.01616.75
7.4.60.0070.01717.00
7.4.50.0030.00916.68
7.4.40.0080.00422.77
7.4.30.0130.01016.87
7.4.10.0040.01415.18
7.4.00.0070.01214.74
7.3.210.0090.01216.88
7.3.200.0180.01419.39
7.3.190.0090.01317.03
7.3.180.0170.00316.79
7.3.170.0100.01316.84
7.3.160.0060.01617.07
7.3.130.0100.01014.96
7.3.120.0070.01014.81
7.3.110.0030.01314.89
7.3.100.0090.00614.77
7.3.90.0070.00914.74
7.3.80.0070.00614.88
7.3.70.0070.00714.76
7.3.60.0060.00914.79
7.3.50.0050.01114.84
7.3.40.0050.01014.67
7.3.30.0060.00614.96
7.3.20.0090.00616.63
7.3.10.0060.00616.60
7.3.00.0080.00616.79
7.2.330.0190.00617.02
7.2.320.0110.01517.02
7.2.310.0110.01117.00
7.2.300.0110.01217.16
7.2.290.0140.00617.21
7.2.260.0070.01314.98
7.2.250.0080.01115.04
7.2.240.0110.00515.33
7.2.230.0080.00915.30
7.2.220.0050.00815.08
7.2.210.0050.00814.82
7.2.200.0090.00815.05
7.2.190.0070.00814.84
7.2.180.0050.00915.08
7.2.170.0040.00915.00
7.2.160.0110.00314.94
7.2.150.0080.00817.01
7.2.140.0050.01216.67
7.2.130.0090.00316.84
7.2.120.0100.00616.91
7.2.110.0090.00616.78
7.2.100.0070.00816.75
7.2.90.0080.00716.77
7.2.80.0810.00516.79
7.2.70.0090.00616.95
7.2.60.0140.01216.95
7.2.50.0100.00516.80
7.2.40.0060.01016.79
7.2.30.0080.00716.97
7.2.20.0080.00816.87
7.2.10.0070.00916.85
7.2.00.0070.00817.35
7.1.330.0100.00615.65
7.1.320.0070.00715.98
7.1.310.0050.01015.75
7.1.300.0080.00915.86
7.1.290.0050.01215.61
7.1.280.0050.01115.67
7.1.270.0090.00615.81
7.1.260.0110.00315.66
7.1.250.0100.00315.70
7.1.240.0030.00915.53
7.1.230.0270.01115.77
7.1.220.0060.00915.82
7.1.210.0090.00515.78
7.1.200.0090.00415.72
7.1.190.0250.00815.84
7.1.180.0080.00715.91
7.1.170.0080.01015.58
7.1.160.0110.00315.67
7.1.150.0090.00815.79
7.1.140.0080.01315.58
7.1.130.0210.00815.59
7.1.120.0010.01315.81
7.1.110.0080.00515.96
7.1.100.0080.00616.63
7.1.90.0040.01115.82
7.1.80.0290.00615.81
7.1.70.0120.00316.24
7.1.60.0060.01117.06
7.1.50.0080.01116.30
7.1.40.0080.00815.93
7.1.30.0080.00715.85
7.1.20.0120.00315.67
7.1.10.0120.00015.76
7.1.00.0060.03218.02
7.0.330.0120.00015.57
7.0.320.0000.01315.46
7.0.310.0130.00215.54
7.0.300.0080.00815.41
7.0.290.0070.00815.45
7.0.280.0300.00815.34
7.0.270.0050.00615.32
7.0.260.0150.00815.26
7.0.250.0180.01115.37
7.0.240.0070.00715.53
7.0.230.0120.00715.45
7.0.220.0090.00515.28
7.0.210.0100.00415.42
7.0.200.0070.00515.72
7.0.190.0090.00615.20
7.0.180.0080.00515.47
7.0.170.0080.00815.33
7.0.160.0490.00515.45
7.0.150.0050.00815.41
7.0.140.0160.02417.64
7.0.130.0080.00615.37
7.0.120.0130.00215.34
7.0.110.0130.01215.48
7.0.100.0100.01115.26
7.0.90.0110.00715.26
7.0.80.0160.00315.36
7.0.70.0140.02817.62
7.0.60.0080.02217.63
7.0.50.0070.03517.68
7.0.40.0070.03415.63
7.0.30.0070.02715.60
7.0.20.0090.03415.74
7.0.10.0080.03015.68
7.0.00.0120.02815.62
5.6.400.0120.00314.64
5.6.390.0100.00314.64
5.6.380.0090.00714.30
5.6.370.0060.00614.41
5.6.360.0130.00514.38
5.6.350.0080.00514.06
5.6.340.0090.00814.62
5.6.330.0070.00914.47
5.6.320.0090.00614.35
5.6.310.0030.01114.36
5.6.300.0050.00914.24
5.6.290.0140.00414.30
5.6.280.0090.02716.43
5.6.270.0090.00614.34
5.6.260.0080.00914.17
5.6.250.0110.00914.42
5.6.240.0090.00814.40
5.6.230.0080.00514.27
5.6.220.0120.02916.38
5.6.210.0060.03416.36
5.6.200.0080.03516.51
5.6.190.0060.03516.59
5.6.180.0090.03316.64
5.6.170.0140.02416.56
5.6.160.0070.03116.43
5.6.150.0110.02816.60
5.6.140.0160.02916.41
5.6.130.0110.02516.57
5.6.120.0070.03616.53
5.6.110.0100.03116.51
5.6.100.0070.03616.40
5.6.90.0080.03316.54
5.6.80.0110.02916.29
5.6.70.0080.02616.27
5.6.60.0090.01916.33
5.6.50.0100.03116.34
5.6.40.0070.01916.40
5.6.30.0070.01816.36
5.6.20.0100.01616.38
5.6.10.0060.02516.42
5.6.00.0090.01616.35
5.5.380.0060.00813.65
5.5.370.0070.00513.51
5.5.360.0090.02815.85
5.5.350.0070.01715.89
5.5.340.0080.03115.92
5.5.330.0130.02515.86
5.5.320.0090.03115.85
5.5.310.0090.02916.03
5.5.300.0080.03015.88
5.5.290.0070.02315.99
5.5.280.0060.01816.04
5.5.270.0040.03515.96
5.5.260.0080.03316.09
5.5.250.0080.03316.02
5.5.240.0120.03015.76
5.5.230.0100.02615.75
5.5.220.0000.02715.61
5.5.210.0090.02915.67
5.5.200.0070.02515.81
5.5.190.0060.02615.61
5.5.180.0050.01715.77
5.5.170.0070.00814.30
5.5.160.0090.01415.79
5.5.150.0020.02215.72
5.5.140.0090.01815.56
5.5.130.0070.02715.67
5.5.120.0050.03015.70
5.5.110.0070.01515.71
5.5.100.0080.03215.69
5.5.90.0070.01515.76
5.5.80.0050.01915.69
5.5.70.0060.02815.64
5.5.60.0090.01415.69
5.5.50.0080.01515.65
5.5.40.0080.01815.68
5.5.30.0060.01715.60
5.5.20.0070.01415.76
5.5.10.0100.01515.64
5.5.00.0060.02315.61
5.4.450.0110.02614.53
5.4.440.0070.02614.48
5.4.430.0060.03214.51
5.4.420.0120.02614.43
5.4.410.0030.03214.44
5.4.400.0020.03514.39
5.4.390.0040.03314.41
5.4.380.0080.02214.40
5.4.370.0050.02914.36
5.4.360.0090.02714.30
5.4.350.0050.01614.33
5.4.340.0070.01614.38
5.4.330.0050.00512.02
5.4.320.0050.01714.38
5.4.310.0050.02114.29
5.4.300.0050.01414.31
5.4.290.0080.01414.38
5.4.280.0030.01814.38
5.4.270.0090.01214.30
5.4.260.0060.01614.39
5.4.250.0040.02014.40
5.4.240.0060.01714.41
5.4.230.0060.02214.41
5.4.220.0070.01614.30
5.4.210.0060.01614.41
5.4.200.0080.01414.35
5.4.190.0080.02314.36
5.4.180.0060.01514.37
5.4.170.0050.01714.38
5.4.160.0040.01814.37
5.4.150.0090.01514.29
5.4.140.0070.02313.50
5.4.130.0070.01613.41
5.4.120.0040.01813.60
5.4.110.0080.01613.53
5.4.100.0040.01513.51
5.4.90.0070.01613.52
5.4.80.0080.01613.51
5.4.70.0040.01813.50
5.4.60.0070.01513.50
5.4.50.0060.02713.49
5.4.40.0050.01513.46
5.4.30.0100.01213.52
5.4.20.0090.01513.48
5.4.10.0090.02613.52
5.4.00.0070.02713.32
5.3.290.0090.02013.78
5.3.280.0100.01813.65
5.3.270.0060.02713.66
5.3.260.0080.02013.67
5.3.250.0090.03213.67
5.3.240.0080.02313.73
5.3.230.0060.03813.70
5.3.220.0060.03513.67
5.3.210.0070.02113.74
5.3.200.0090.03613.66
5.3.190.0050.02213.75
5.3.180.0090.01813.71
5.3.170.0040.02313.69
5.3.160.0070.02413.66
5.3.150.0080.02213.66
5.3.140.0060.02613.69
5.3.130.0040.02313.70
5.3.120.0030.02313.70
5.3.110.0060.04213.70
5.3.100.0070.03813.41
5.3.90.0080.04213.41
5.3.80.0050.04013.41
5.3.70.0100.03813.45
5.3.60.0140.03513.42
5.3.50.0070.03913.40
5.3.40.0030.03313.44
5.3.30.0050.03513.31
5.3.20.0150.03313.25
5.3.10.0050.03713.23
5.3.00.0040.03913.25
5.2.170.0040.03012.49
5.2.160.0040.03012.49
5.2.150.0040.03212.49
5.2.140.0070.03412.49
5.2.130.0070.02912.49
5.2.120.0050.03412.49
5.2.110.0060.03112.49
5.2.100.0110.03012.49
5.2.90.0040.03412.49
5.2.80.0070.03212.49
5.2.70.0080.03312.49
5.2.60.0060.03212.49
5.2.50.0090.02312.49
5.2.40.0100.02812.49
5.2.30.0080.02812.49
5.2.20.0030.03512.49
5.2.10.0040.02712.49
5.2.00.0070.03312.49
5.1.60.0040.03112.49
5.1.50.0050.02912.49
5.1.40.0060.02812.49
5.1.30.0090.02812.49
5.1.20.0020.03212.49
5.1.10.0080.02912.49
5.1.00.0060.02712.49
5.0.50.0050.02212.49
5.0.40.0090.01812.49
5.0.30.0020.03012.49
5.0.20.0050.02012.49
5.0.10.0010.02512.49
5.0.00.0040.03112.49
4.4.90.0020.02012.49
4.4.80.0020.01312.49
4.4.70.0000.02212.49
4.4.60.0040.01812.49
4.4.50.0070.01512.49
4.4.40.0040.02312.49
4.4.30.0020.01812.49
4.4.20.0000.02212.49
4.4.10.0050.02012.49
4.4.00.0040.02912.49
4.3.110.0050.01712.49
4.3.100.0000.02112.49
4.3.90.0040.01812.49
4.3.80.0030.02612.49
4.3.70.0020.01912.49
4.3.60.0020.01812.49
4.3.50.0000.02212.49
4.3.40.0040.02512.49
4.3.30.0050.01912.49
4.3.20.0000.02012.49
4.3.10.0020.01912.49
4.3.00.0020.01912.49