3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected_array_got_string = 'somestring'; var_dump(empty($expected_array_got_string['s'])); var_dump($expected_array_got_string['s']); var_dump($expected_array_got_string{0});

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.0100.01018.75
8.3.30.0140.00018.92
8.3.20.0070.00020.09
8.3.10.0080.00021.90
8.3.00.0070.00322.34
8.2.170.0100.00322.96
8.2.160.0100.00322.13
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00917.63
8.2.110.0090.00022.19
8.2.100.0080.00417.66
8.2.90.0000.00818.80
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0040.00417.63
8.2.50.0030.00518.07
8.2.40.0000.01219.11
8.2.30.0050.00317.99
8.2.20.0040.00417.55
8.2.10.0050.00317.93
8.2.00.0000.00718.03
8.1.270.0080.00820.30
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.68
8.1.230.0040.00821.04
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0070.00417.23
8.1.190.0040.00417.10
8.1.180.0090.00018.10
8.1.170.0040.00418.45
8.1.160.0030.00522.01
8.1.150.0040.00418.63
8.1.140.0030.00617.24
8.1.130.0080.00017.50
8.1.120.0000.00717.38
8.1.110.0000.00817.22
8.1.100.0050.00217.25
8.1.90.0030.00617.34
8.1.80.0000.00717.21
8.1.70.0050.00217.30
8.1.60.0030.00617.46
8.1.50.0090.00017.29
8.1.40.0000.00817.38
8.1.30.0000.00817.51
8.1.20.0080.00017.56
8.1.10.0040.00417.43
8.1.00.0060.00317.32
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.31
8.0.270.0040.00417.03
8.0.260.0040.00417.13
8.0.250.0000.00716.76
8.0.240.0030.00316.77
8.0.230.0000.00716.79
8.0.220.0020.00516.81
8.0.210.0070.00016.68
8.0.200.0030.00316.79
8.0.190.0040.00416.79
8.0.180.0040.00416.77
8.0.170.0040.00416.86
8.0.160.0070.00016.77
8.0.150.0080.00016.82
8.0.140.0000.00716.72
8.0.130.0060.00013.29
8.0.120.0000.00716.79
8.0.110.0030.00516.80
8.0.100.0070.00016.71
8.0.90.0000.00816.72
8.0.80.0120.00916.82
8.0.70.0030.00516.70
8.0.60.0000.00716.76
8.0.50.0040.00416.93
8.0.30.0090.00917.14
8.0.20.0110.01217.40
8.0.10.0040.00416.75
8.0.00.0070.01016.54
7.4.330.0000.00515.04
7.4.320.0000.00616.56
7.4.300.0000.00716.41
7.4.290.0000.00716.41
7.4.280.0040.00416.34
7.4.270.0030.00316.45
7.4.260.0070.00016.37
7.4.250.0030.00616.54
7.4.240.0030.00316.48
7.4.230.0070.00016.35
7.4.220.0100.01016.38
7.4.210.0100.01016.45
7.4.200.0000.00716.43
7.4.160.0110.00416.39
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0070.01316.48
7.4.120.0100.00916.51
7.4.110.0060.00916.37
7.4.100.0060.01216.56
7.4.90.0130.00416.54
7.4.80.0140.00319.39
7.4.70.0080.00816.64
7.4.60.0060.01216.59
7.4.50.0060.00316.28
7.4.40.0130.00316.40
7.4.30.0140.00516.43
7.4.00.0070.00914.90
7.3.330.0000.00613.12
7.3.320.0000.00613.04
7.3.310.0000.00716.29
7.3.300.0060.00016.16
7.3.290.0080.00716.37
7.3.280.0110.01116.34
7.3.270.0040.01317.40
7.3.260.0110.01116.39
7.3.250.0100.00716.29
7.3.240.0090.01316.51
7.3.230.0130.00916.57
7.3.210.0100.00716.34
7.3.200.0040.01119.39
7.3.190.0090.00916.22
7.3.180.0070.01416.29
7.3.170.0170.00616.52
7.3.160.0090.00916.39
7.3.120.0070.01014.75
7.3.110.0110.01114.77
7.3.100.0030.00614.57
7.3.90.0060.00314.83
7.3.80.0060.00614.56
7.3.70.0060.00914.62
7.3.60.0000.01314.39
7.3.50.0070.00714.55
7.3.40.0030.00514.72
7.3.30.0000.00814.79
7.3.20.0000.01216.68
7.3.10.0130.00516.54
7.3.00.0110.00616.27
7.2.330.0120.00616.58
7.2.320.0130.00516.31
7.2.310.0140.00716.38
7.2.300.0130.00316.39
7.2.290.0040.01416.68
7.2.250.0100.01014.82
7.2.240.0100.01014.94
7.2.230.0030.01014.89
7.2.220.0060.00615.16
7.2.210.0110.00314.63
7.2.200.0000.00915.00
7.2.190.0060.00315.09
7.2.180.0080.00415.05
7.2.170.0070.00715.01
7.2.130.0110.00416.62
7.2.120.0130.00816.43
7.2.110.0090.00516.58
7.2.100.0100.01016.43
7.2.90.0130.00416.58
7.2.80.0100.01016.39
7.2.70.0180.00316.20
7.2.60.0080.00516.46
7.2.50.0210.00716.46
7.2.40.0160.00316.76
7.2.30.0190.00016.70
7.2.20.0180.00316.59
7.2.10.0060.01516.31
7.2.00.0110.00717.93
7.1.330.0080.00615.97
7.1.320.0110.00015.66
7.1.310.0030.01015.93
7.1.300.0000.00915.88
7.1.290.0030.01415.82
7.1.280.0040.00415.83
7.1.270.0040.00415.50
7.1.260.0080.00415.80
7.1.250.0090.00915.79
7.1.200.0060.00615.84
7.1.100.0030.01018.01
7.1.70.0040.00417.27
7.1.60.0110.01119.59
7.1.50.0090.01316.92
7.1.00.0030.07722.30
7.0.200.0030.00316.83
7.0.60.0070.05020.02
7.0.50.0170.07717.77
7.0.40.0100.04720.09
7.0.30.0370.07320.02
7.0.20.0230.04320.21
7.0.10.0100.08020.15
7.0.00.0000.04720.30
5.6.280.0070.06021.16
5.6.210.0000.04720.66
5.6.200.0030.04018.11
5.6.190.0070.04020.33
5.6.180.3400.04320.45
5.6.170.0200.04020.47
5.6.160.0070.07720.38
5.6.150.0100.04018.12
5.6.140.0100.03718.17
5.6.130.0070.05318.20
5.6.120.0100.06721.05
5.6.110.0100.08021.01
5.6.100.0030.05021.00
5.6.90.0000.05320.98
5.6.80.0030.04020.43
5.6.70.0300.07020.41
5.5.350.4070.04320.44
5.5.340.0070.08018.00
5.5.330.0000.04720.23
5.5.320.0270.04720.50
5.5.310.0230.03720.20
5.5.300.0130.07317.95
5.5.290.0030.04018.00
5.5.280.0000.05020.98
5.5.270.0070.09020.79
5.5.260.0100.08320.95
5.5.250.0070.08020.68
5.5.240.0230.05020.16
5.4.450.0700.07319.31
5.4.440.0830.06019.41
5.4.430.1100.04719.24
5.4.420.1030.05319.46
5.4.410.0870.05019.36
5.4.400.0870.04719.18
5.4.390.0870.05019.13
5.4.380.0800.05318.80
5.4.370.0330.04319.27
5.4.360.0130.05018.91
5.4.350.0030.05719.16
5.4.340.0270.05318.80
5.4.320.0900.04719.28
5.4.310.0870.04719.30
5.4.300.0870.05018.77
5.4.290.0830.05718.77
5.4.280.0800.05718.80
5.4.270.0870.04719.08
5.4.260.1030.05719.14
5.4.250.0830.05319.21
5.4.240.1030.05719.27
5.4.230.1030.05719.15
5.4.220.1000.05718.90
5.4.210.1030.05018.82
5.4.200.0900.04316.77
5.4.190.0800.05019.28
5.4.180.0800.05319.06
5.4.170.0900.05019.09
5.4.160.0870.05018.94
5.4.150.0930.04719.28
5.4.140.0770.05316.29
5.4.130.0930.04016.28
5.4.120.0830.05016.44
5.4.110.0900.04716.23
5.4.100.0800.05316.28
5.4.90.0830.05016.26
5.4.80.1100.05016.20
5.4.70.1000.05316.19
5.4.60.1070.04316.31
5.4.50.0830.04716.41
5.4.40.0900.04316.43
5.4.30.1070.05316.20
5.4.20.0700.06016.35
5.4.10.1030.03016.14
5.4.00.0770.06015.92
5.3.290.0900.04714.49
5.3.280.0930.04714.43
5.3.270.0930.06014.47
5.3.260.0770.05714.48
5.3.250.0770.05714.55
5.3.240.0830.05014.55
5.3.230.1030.05014.43
5.3.220.0870.04714.65
5.3.210.0930.05014.51
5.3.200.0870.04714.65
5.3.190.0970.04314.43
5.3.180.0930.05714.50
5.3.170.0870.05314.40
5.3.160.0830.05014.48
5.3.150.0830.05714.50
5.3.140.0830.06014.64
5.3.130.0800.05714.38
5.3.120.1100.04714.38
5.3.110.0830.05314.63
5.3.100.0830.05013.89
5.3.90.1130.04314.02
5.3.80.1000.06013.86
5.3.70.0800.05313.86
5.3.60.0870.05013.93
5.3.50.1000.05014.04
5.3.40.1100.05713.72
5.3.30.1030.04713.91
5.3.20.0770.05013.63
5.3.10.0900.04313.44
5.3.00.0900.04713.51
5.2.170.0100.04310.98
5.2.160.0100.03711.19
5.2.150.0100.03710.98
5.2.140.0100.03710.99
5.2.130.0530.04310.89
5.2.120.0830.02311.13
5.2.110.0830.04011.17
5.2.100.0970.03710.93
5.2.90.0670.05011.19
5.2.80.0600.05011.11
5.2.70.0570.05310.92
5.2.60.0770.05010.88
5.2.50.0800.04310.96
5.2.40.0600.04310.78
5.2.30.0630.04311.04
5.2.20.0600.04010.82
5.2.10.0470.04710.75
5.2.00.0530.04310.56
5.1.60.0570.03010.00
5.1.50.0500.0409.91
5.1.40.0670.0479.99
5.1.30.0700.03010.23
5.1.20.0530.03710.29
5.1.10.0570.0339.99
5.1.00.0700.0379.98
5.0.50.0270.0308.70
5.0.40.0230.0308.30
5.0.30.0330.0378.29
5.0.20.0330.0278.17
5.0.10.0370.0378.21
5.0.00.0430.0338.21
4.4.90.0270.0205.85
4.4.80.0300.0175.82
4.4.70.0270.0235.80
4.4.60.0230.0235.75
4.4.50.0300.0205.82
4.4.40.0270.0335.78
4.4.30.0400.0205.79
4.4.20.0270.0235.89
4.4.10.0400.0175.80
4.4.00.0330.0275.88
4.3.110.0300.0205.67
4.3.100.0370.0175.66
4.3.90.0300.0175.78
4.3.80.0370.0235.74
4.3.70.0230.0235.73
4.3.60.0330.0135.79
4.3.50.0230.0275.70
4.3.40.0270.0335.68
4.3.30.0170.0234.59
4.3.20.0130.0274.48
4.3.10.0170.0304.37
4.3.00.0100.0236.98

preferences:
66.49 ms | 400 KiB | 5 Q