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'; 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.1.70.0000.00817.46
8.1.60.0040.00417.73
8.1.50.0050.00317.69
8.1.40.0030.00617.63
8.1.30.0060.00317.81
8.1.20.0050.00317.80
8.1.10.0000.00817.70
8.1.00.0080.00417.84
8.0.200.0000.00617.22
8.0.190.0070.00017.29
8.0.180.0100.00017.18
8.0.170.0080.00017.25
8.0.160.0000.00717.20
8.0.150.0050.00517.05
8.0.140.0100.00317.17
8.0.130.0090.00413.69
8.0.120.0000.00817.18
8.0.110.0000.00717.11
8.0.100.0000.00817.10
8.0.90.0070.00017.25
8.0.80.0130.00817.05
8.0.70.0050.00217.12
8.0.60.0050.00216.91
8.0.50.0040.00416.93
8.0.30.0110.00817.36
8.0.20.0160.00817.42
8.0.10.0040.00417.03
8.0.00.0080.01016.97
7.4.300.0050.00316.88
7.4.290.0070.00016.80
7.4.280.0030.01016.77
7.4.270.0040.00416.84
7.4.260.0110.00716.80
7.4.250.0020.00516.68
7.4.240.0050.00216.85
7.4.230.0040.00416.98
7.4.220.0140.00316.89
7.4.210.0150.00616.88
7.4.200.0030.00416.84
7.4.160.0170.01016.77
7.4.150.0110.01017.40
7.4.140.0150.00717.86
7.4.130.0110.00616.79
7.4.120.0030.01416.79
7.4.110.0090.00916.91
7.4.100.0070.01516.90
7.4.90.0160.00016.77
7.4.80.0070.01319.39
7.4.70.0060.01116.85
7.4.60.0070.01316.71
7.4.50.0030.00316.60
7.4.40.0060.01016.61
7.4.30.0040.01216.80
7.4.00.0100.00614.96
7.3.330.0050.00013.60
7.3.320.0050.00013.51
7.3.310.0040.00416.66
7.3.300.0000.00616.70
7.3.290.0060.01416.66
7.3.280.0100.00916.68
7.3.270.0180.00017.40
7.3.260.0030.01416.72
7.3.250.0110.00716.74
7.3.240.0100.01316.81
7.3.230.0150.00716.82
7.3.210.0140.00416.81
7.3.200.0100.00719.39
7.3.190.0060.01016.69
7.3.180.0100.00516.64
7.3.170.0120.00316.81
7.3.160.0070.01316.91
7.3.120.0060.01014.84
7.3.110.0070.01014.98
7.3.100.0040.01215.16
7.3.90.0030.01014.64
7.3.80.0030.01314.98
7.3.70.0000.01615.00
7.3.60.0070.00714.96
7.3.50.0000.01414.92
7.3.40.0040.01414.88
7.3.30.0070.00714.73
7.3.20.0070.00716.67
7.3.10.0030.00616.72
7.3.00.0480.00615.75
7.2.330.0070.01017.08
7.2.320.0180.01217.00
7.2.310.0160.00616.68
7.2.300.0090.00916.95
7.2.290.0100.01417.07
7.2.250.0130.00315.19
7.2.240.0120.00615.26
7.2.230.0100.01014.91
7.2.220.0090.00615.10
7.2.210.0060.01014.91
7.2.200.0000.01014.96
7.2.190.0030.00914.86
7.2.180.0050.01215.19
7.2.170.0070.01014.97
7.2.130.0740.00715.25
7.2.120.0980.00715.11
7.2.110.0780.00715.09
7.2.100.0810.00314.86
7.2.90.1580.00315.16
7.2.80.0980.01015.13
7.2.70.0670.00314.93
7.2.60.0380.00415.92
7.2.50.0510.01015.86
7.2.40.0950.00715.24
7.2.30.0900.01315.20
7.2.20.0950.00715.14
7.2.10.1450.00715.07
7.2.00.0370.01016.94
7.1.330.0030.01415.78
7.1.320.0070.00715.95
7.1.310.0040.01416.09
7.1.300.0070.00315.86
7.1.290.0060.00915.90
7.1.280.0000.01115.48
7.1.270.0100.00715.89
7.1.260.0000.01315.54
7.1.250.0670.00713.84
7.1.240.0870.00313.79
7.1.230.0990.01313.98
7.1.220.0540.01014.02
7.1.210.0850.00713.88
7.1.200.0370.01114.96
7.1.190.0480.00613.93
7.1.180.0690.00713.58
7.1.170.1050.00713.86
7.1.160.0690.00713.68
7.1.150.0800.00713.71
7.1.140.0720.01413.58
7.1.130.0670.00713.76
7.1.120.0920.01013.98
7.1.110.0510.00914.10
7.1.100.0730.00313.82
7.1.90.0730.01013.73
7.1.80.2060.00713.84
7.1.70.0240.00515.35
7.1.60.0210.01416.73
7.1.50.0260.00515.44
7.1.40.0640.00713.72
7.1.30.0390.00713.73
7.1.20.0930.00013.67
7.1.10.0510.00313.49
7.1.00.0420.04218.14
7.0.330.0930.01013.57
7.0.320.0750.01113.53
7.0.310.0750.00713.56
7.0.300.0770.00313.62
7.0.290.0600.01913.54
7.0.280.0540.01813.51
7.0.270.0430.01213.69
7.0.260.0790.00613.63
7.0.250.0390.01213.63
7.0.240.0560.00013.55
7.0.230.1050.00313.80
7.0.220.0780.00613.75
7.0.210.0570.00413.77
7.0.200.0260.00615.22
7.0.190.0620.00713.82
7.0.180.0650.00613.58
7.0.170.0820.00413.36
7.0.160.0760.00713.58
7.0.150.0430.01113.42
7.0.140.0390.04017.94
7.0.130.0740.00713.60
7.0.120.0510.00713.79
7.0.110.0560.00613.68
7.0.100.0550.00913.50
7.0.90.0490.00713.68
7.0.80.0470.00613.70
7.0.70.0800.01313.58
7.0.60.0480.03516.69
7.0.50.0290.02615.72
7.0.40.0230.02216.88
7.0.30.0300.03316.94
7.0.20.1280.02716.88
7.0.10.0270.03817.01
7.0.00.0250.04317.04
5.6.380.0070.01014.23
5.6.370.0170.00414.14
5.6.360.0190.00314.46
5.6.350.0140.00514.22
5.6.340.0150.00714.26
5.6.330.0180.00514.32
5.6.320.0090.01214.19
5.6.310.0100.01014.51
5.6.300.0110.01114.30
5.6.290.0060.01814.18
5.6.280.0110.03617.59
5.6.270.0140.00614.31
5.6.260.0190.00414.24
5.6.250.0050.01614.41
5.6.240.0150.00514.29
5.6.230.0150.00614.45
5.6.220.0210.00914.30
5.6.210.0170.03717.39
5.6.200.0110.04616.21
5.6.190.0040.03017.59
5.6.180.0190.03717.41
5.6.170.0260.01917.39
5.6.160.0050.03417.32
5.6.150.0110.04516.29
5.6.140.0180.03716.22
5.6.130.0110.04416.28
5.6.120.0070.02517.69
5.6.110.0090.04217.62
5.6.100.0150.04417.63
5.6.90.0090.04617.58
5.6.80.0100.02117.45
5.6.70.0060.01614.06
5.6.60.0120.00413.95
5.6.50.0060.01514.30
5.6.40.0110.00614.16
5.6.30.0070.00714.38
5.6.20.0130.00714.28
5.6.10.0120.00914.16
5.6.00.0100.01413.98
5.5.380.0100.00711.34
5.5.370.0080.00811.35
5.5.360.0090.00911.28
5.5.350.0220.03515.74
5.5.340.0100.04314.67
5.5.330.0060.04615.65
5.5.320.0260.03815.65
5.5.310.0140.02115.75
5.5.300.0080.02814.44
5.5.290.0090.02014.68
5.5.280.0090.03815.86
5.5.270.0130.02816.12
5.5.260.0120.04015.91
5.5.250.0070.02115.82
5.5.240.0140.03515.73
5.5.230.0110.00511.07
5.5.220.0000.01111.02
5.5.210.0110.00010.86
5.5.200.0070.00611.28
5.5.190.0070.00410.98
5.5.180.0040.00811.20
5.5.170.0110.00311.27
5.5.160.0160.00011.05
5.5.150.0040.01111.05
5.5.140.0100.00511.01
5.5.130.0140.00011.17
5.5.120.0090.00510.97
5.5.110.0070.00711.31
5.5.100.0030.00911.27
5.5.90.0040.01111.21
5.5.80.0080.00811.01
5.5.70.0090.00411.10
5.5.60.0110.00611.13
5.5.50.0170.00010.82
5.5.40.0050.00911.24
5.5.30.0100.00710.94
5.5.20.0150.00011.18
5.5.10.0110.00611.23
5.5.00.0080.00811.09
5.4.450.0070.02515.34
5.4.440.0070.02915.35
5.4.430.0020.02615.24
5.4.420.0130.03515.27
5.4.410.0070.02715.17
5.4.400.0100.02815.05
5.4.390.0040.04415.02
5.4.380.0090.02815.02
5.4.370.0110.02115.04
5.4.360.0080.03915.13
5.4.350.0050.02814.92
5.4.340.0110.03815.07
5.4.330.0060.00610.86
5.4.320.0040.04514.91
5.4.310.0130.03714.97
5.4.300.0100.03815.13
5.4.290.0070.04515.17
5.4.280.0080.04015.07
5.4.270.0080.03715.20
5.4.260.0100.01815.03
5.4.250.0080.04015.15
5.4.240.0070.04615.01
5.4.230.0080.03515.12
5.4.220.0180.02015.07
5.4.210.0090.03814.71
5.4.200.0070.02614.89
5.4.190.0050.02814.88
5.4.180.0040.03915.09
5.4.170.0130.02315.02
5.4.160.0070.04415.19
5.4.150.0060.04114.92
5.4.140.0090.02713.71
5.4.130.0120.03313.87
5.4.120.0030.02713.67
5.4.110.0050.02413.73
5.4.100.0050.04013.69
5.4.90.0100.01813.73
5.4.80.0100.03313.71
5.4.70.0040.03213.80
5.4.60.0110.02113.62
5.4.50.0120.03013.76
5.4.40.0070.02413.81
5.4.30.0090.03713.83
5.4.20.0070.02413.77
5.4.10.0070.03413.72
5.4.00.0060.02113.48
5.3.290.0070.02712.53
5.3.280.0110.03312.59
5.3.270.0100.02512.65
5.3.260.0060.04312.66
5.3.250.0070.04212.57
5.3.240.0050.02912.54
5.3.230.0040.03412.54
5.3.220.0090.01912.45
5.3.210.0070.02612.46
5.3.200.0050.02212.55
5.3.190.0040.03112.54
5.3.180.0060.03912.59
5.3.170.0120.03812.61
5.3.160.0080.03612.56
5.3.150.0110.03712.63
5.3.140.0080.03412.51
5.3.130.0100.02212.55
5.3.120.0130.03712.64
5.3.110.0080.03812.49
5.3.100.0070.03912.28
5.3.90.0060.02712.41
5.3.80.0090.03412.20
5.3.70.0100.03312.17
5.3.60.0040.04312.25
5.3.50.0110.03812.27
5.3.40.0090.03212.30
5.3.30.0150.03212.29
5.3.20.0050.02712.13
5.3.10.0120.01511.85
5.3.00.0090.02212.03
5.2.170.0050.03510.39
5.2.160.0090.02710.41
5.2.150.0060.02310.42
5.2.140.0070.03210.30
5.2.130.0040.01910.32
5.2.120.0080.01610.22
5.2.110.0080.02710.40
5.2.100.0040.02810.36
5.2.90.0070.03110.16
5.2.80.0140.01510.37
5.2.70.0100.02510.23
5.2.60.0020.03410.19
5.2.50.0070.02710.19
5.2.40.0060.03010.16
5.2.30.0040.03410.14
5.2.20.0050.01910.11
5.2.10.0090.01810.05
5.2.00.0080.0129.94
5.1.60.0020.0189.54
5.1.50.0070.0309.54
5.1.40.0090.0189.56
5.1.30.0070.0199.67
5.1.20.0040.0219.68
5.1.10.0060.0209.54
5.1.00.0080.0279.54
5.0.50.0000.0179.54
5.0.40.0030.0149.54
5.0.30.0050.0289.54
5.0.20.0040.0209.54
5.0.10.0050.0189.54
5.0.00.0090.0159.54
4.4.90.0040.0209.54
4.4.80.0070.0169.54
4.4.70.0040.0199.54
4.4.60.0060.0139.54
4.4.50.0060.0169.54
4.4.40.0000.0249.54
4.4.30.0040.0159.54
4.4.20.0020.0209.54
4.4.10.0050.0109.54
4.4.00.0020.0259.54
4.3.110.0040.0089.54
4.3.100.0080.0139.54
4.3.90.0020.0159.54
4.3.80.0050.0239.54
4.3.70.0070.0089.54
4.3.60.0050.0109.54
4.3.50.0060.0079.54
4.3.40.0020.0279.54
4.3.30.0000.0239.54
4.3.20.0000.0189.54
4.3.10.0040.0189.54
4.3.00.0000.0129.54

preferences:
12.79 ms | 406 KiB | 5 Q