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\n"); $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.3.40.0090.01218.60
8.3.30.0060.01018.96
8.3.20.0030.00618.85
8.3.10.0000.01020.48
8.3.00.0100.00019.51
8.2.170.0140.00722.96
8.2.160.0070.00719.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00521.05
8.2.110.0000.01119.55
8.2.100.0140.00317.97
8.2.90.0100.00318.03
8.2.80.0050.00519.44
8.2.70.0080.00317.75
8.2.60.0000.00917.93
8.2.50.0110.00018.07
8.2.40.0060.00320.20
8.2.30.0070.00417.86
8.2.20.0120.00317.86
8.2.10.0030.00617.80
8.2.00.0100.00317.91
8.1.270.0060.00323.99
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0090.00422.38
8.1.230.0140.00322.99
8.1.220.0060.00618.01
8.1.210.0040.00719.10
8.1.200.0080.00417.47
8.1.190.0080.00417.36
8.1.180.0040.00718.10
8.1.170.0000.01018.94
8.1.160.0070.00219.31
8.1.150.0000.01018.67
8.1.140.0000.00917.60
8.1.130.0070.00018.09
8.1.120.0090.00017.63
8.1.110.0040.00417.66
8.1.100.0080.00017.52
8.1.90.0040.00417.64
8.1.80.0050.00517.69
8.1.70.0080.00017.62
8.1.60.0030.00617.66
8.1.50.0060.00317.66
8.1.40.0050.00517.73
8.1.30.0070.00317.81
8.1.20.0100.00017.82
8.1.10.0030.00617.80
8.1.00.0070.00317.71
8.0.300.0110.00020.48
8.0.290.0110.00017.00
8.0.280.0050.00518.80
8.0.270.0060.00317.56
8.0.260.0100.00017.05
8.0.250.0080.00317.18
8.0.240.0000.00817.28
8.0.230.0000.00717.22
8.0.220.0060.00317.01
8.0.210.0000.00817.09
8.0.200.0030.00517.08
8.0.190.0050.00517.14
8.0.180.0100.00317.11
8.0.170.0030.00717.11
8.0.160.0060.00317.22
8.0.150.0050.00517.20
8.0.140.0150.00317.16
8.0.130.0000.00713.54
8.0.120.0060.00617.00
8.0.110.0040.00416.94
8.0.100.0040.00717.22
8.0.90.0040.00417.13
8.0.80.0180.00717.13
8.0.70.0060.00316.92
8.0.60.0060.00316.96
8.0.50.0000.00717.06
8.0.30.0180.00617.06
8.0.20.0120.00717.24
8.0.10.0000.01117.15
8.0.00.0160.00716.99
7.4.330.0070.00013.23
7.4.320.0030.00516.82
7.4.300.0000.00716.77
7.4.290.0060.00316.90
7.4.280.0150.00016.83
7.4.270.0040.00416.84
7.4.260.0030.00313.57
7.4.250.0110.00016.71
7.4.240.0080.00016.83
7.4.230.0030.00716.85
7.4.220.0080.01216.85
7.4.210.0130.01016.93
7.4.200.0000.00816.89
7.4.190.0070.00217.05
7.4.160.0140.00416.75
7.4.150.0120.00816.86
7.4.140.0150.00816.89
7.4.130.0200.00016.88
7.4.120.0110.00816.82
7.4.110.0180.00416.70
7.4.100.0030.01616.93
7.4.90.0150.00616.85
7.4.80.0140.01519.39
7.4.70.0210.00416.87
7.4.60.0130.01016.80
7.4.50.0040.00216.66
7.4.40.0120.00616.77
7.4.30.0120.00916.87
7.4.00.0080.00815.10
7.3.330.0000.00813.49
7.3.320.0070.00713.71
7.3.310.0000.00716.71
7.3.300.0040.00416.55
7.3.290.0060.00916.70
7.3.280.0090.01016.74
7.3.270.0140.00316.80
7.3.260.0160.00816.68
7.3.250.0140.00816.66
7.3.240.0120.00816.89
7.3.230.0060.01316.79
7.3.210.0100.01016.59
7.3.200.0110.01416.71
7.3.190.0190.00616.65
7.3.180.0090.00916.70
7.3.170.0140.00716.78
7.3.160.0060.01316.58
7.3.120.0090.00614.79
7.2.330.0030.01817.08
7.2.320.0140.00716.84
7.2.310.0160.01217.17
7.2.300.0130.01016.89
7.2.290.0030.01517.12
7.2.60.0110.00517.02
7.2.00.0040.00819.44
7.1.200.0060.00915.64
7.1.100.0030.00918.09
7.1.70.0040.00817.09
7.1.60.0190.00619.30
7.1.50.0090.01616.65
7.1.00.0070.07322.46
7.0.200.0220.00416.77
7.0.140.0030.07721.95
7.0.120.0030.07022.06
7.0.60.0030.04721.59
7.0.50.0000.09017.81
7.0.40.0070.04720.13
7.0.30.0270.05020.17
7.0.20.0170.05720.16
7.0.10.0130.08020.34
7.0.00.0100.07320.14
5.6.280.0000.07320.81
5.6.210.0070.08320.73
5.6.200.0130.07718.13
5.6.190.0000.05020.34
5.6.180.0130.06320.48
5.6.170.0230.05320.45
5.6.160.0130.07320.71
5.6.150.0070.07718.15
5.6.140.0030.06018.15
5.6.130.0100.08018.15
5.6.120.0100.08021.01
5.6.110.0170.07321.03
5.6.100.0100.04721.03
5.6.90.0100.06020.98
5.6.80.0170.04320.39
5.5.350.0130.07720.35
5.5.340.0100.05017.94
5.5.330.0170.03320.23
5.5.320.0330.07720.25
5.5.310.0270.08020.27
5.5.300.0070.05318.07
5.5.290.0100.04717.99
5.5.280.0130.07320.94
5.5.270.0030.08720.98
5.5.260.0100.08020.88
5.5.250.0030.04320.80
5.5.240.0100.06720.29
5.4.450.0030.08319.28
5.4.440.0070.06719.57
5.4.430.0070.03719.20
5.4.420.0100.05019.57
5.4.410.0030.08719.32
5.4.400.0070.03719.25
5.4.390.0070.04019.25
5.4.380.0170.07019.25
5.4.370.0100.07719.16
5.4.360.0030.06319.08
5.4.350.0070.05319.16
5.4.340.0100.08019.15
5.4.320.0070.07019.16
5.4.310.0070.07319.16
5.4.300.0130.07018.87
5.4.290.0070.06719.24
5.4.280.0000.04319.15
5.4.270.0100.05319.14
5.4.260.0100.06019.15
5.4.250.0100.03718.93
5.4.240.0070.07719.23
5.4.230.0030.07319.24
5.4.220.0070.04018.87
5.4.210.0030.03719.14
5.4.200.0130.06718.92
5.4.190.0100.04719.13
5.4.180.0070.05019.25
5.4.170.0070.03319.23
5.4.160.0070.03319.22
5.4.150.0000.04019.21
5.4.140.0000.04716.45
5.4.130.0070.03016.46
5.4.120.0030.03716.50
5.4.110.0100.03016.39
5.4.100.0000.03716.48
5.4.90.0070.03316.45
5.4.80.0000.03716.46
5.4.70.0030.03316.45
5.4.60.0100.03016.40
5.4.50.0000.03716.69
5.4.40.0000.03716.48
5.4.30.0030.03316.47
5.4.20.0030.03316.41
5.4.10.0030.03316.41
5.4.00.0030.03315.90
5.3.290.0070.07314.68
5.3.280.0130.05014.60
5.3.270.0030.03714.66
5.3.260.0030.03714.63
5.3.250.0100.03014.64
5.3.240.0030.03714.61
5.3.230.0070.03714.63
5.3.220.0000.04714.57
5.3.210.0030.03714.60
5.3.200.0070.03014.62
5.3.190.0070.03314.59
5.3.180.0000.03714.59
5.3.170.0070.03314.45
5.3.160.0030.03314.64
5.3.150.0030.04014.55
5.3.140.0000.03714.63
5.3.130.0030.03714.61
5.3.120.0000.04014.47
5.3.110.0030.03714.44
5.3.100.0000.04014.07
5.3.90.0070.04014.05
5.3.80.0030.03314.02
5.3.70.0030.03314.05
5.3.60.0000.03714.06
5.3.50.0030.03313.99
5.3.40.0030.03713.88
5.3.30.0030.04314.06
5.3.20.0030.03313.84
5.3.10.0070.03713.66
5.3.00.0000.03713.80
5.2.170.0000.03311.21
5.2.160.0000.03011.16
5.2.150.0000.03011.32
5.2.140.0000.04711.18
5.2.130.0000.03311.27
5.2.120.0030.02711.03
5.2.110.0070.02311.14
5.2.100.0030.02711.16
5.2.90.0030.03311.14
5.2.80.0000.03011.16
5.2.70.0000.03011.06
5.2.60.0070.02711.08
5.2.50.0070.06011.07
5.2.40.0070.06010.93
5.2.30.0070.06010.97
5.2.20.0030.06710.89
5.2.10.0030.03310.95
5.2.00.0070.06010.79
5.1.60.0030.0539.95
5.1.50.0030.05010.01
5.1.40.0070.03710.03
5.1.30.0100.04010.34
5.1.20.0030.03310.32
5.1.10.0100.04710.09
5.1.00.0100.05310.21
5.0.50.0000.0408.70
5.0.40.0070.0378.41
5.0.30.0000.0678.27
5.0.20.0030.0308.28
5.0.10.0000.0408.15
5.0.00.0030.0378.14
4.4.90.0000.0177.69
4.4.80.0000.0177.69
4.4.70.0000.0177.69
4.4.60.0030.0277.69
4.4.50.0030.0207.69
4.4.40.0030.0537.69
4.4.30.0030.0277.69
4.4.20.0000.0377.69
4.4.10.0030.0377.69
4.4.00.0000.0437.69
4.3.110.0000.0377.69
4.3.100.0070.0307.69
4.3.90.0000.0377.69
4.3.80.0070.0477.69
4.3.70.0000.0277.69
4.3.60.0070.0277.69
4.3.50.0030.0377.69
4.3.40.0000.0537.69
4.3.30.0000.0307.69
4.3.20.0070.0277.69
4.3.10.0030.0337.69
4.3.00.0030.0337.69

preferences:
43 ms | 400 KiB | 5 Q