3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isset_or(&$check, $alternate = NULL) { return (isset($check)) ? $check : $alternate; } $test = array(); echo '$test is ', $test ? 'truthy' : 'empty', ', with ' . count($test) . ' item(s)', "\r\n"; echo '$test[0][0] is ', isset_or($test[0][0], 'not set'), "\r\n"; echo '$test is ', $test ? 'truthy' : 'empty', ', with ' . count($test) . ' item(s)', "\r\n"; echo "\r\n"; var_export($test);

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.140.0130.00320.60
8.3.130.0130.00318.42
8.3.120.0040.00420.91
8.3.110.0060.00320.94
8.3.100.0040.01124.06
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0090.00916.75
8.3.60.0070.01416.63
8.3.50.0100.01021.29
8.3.40.0110.00718.97
8.3.30.0070.00719.22
8.3.20.0070.00020.21
8.3.10.0040.00423.65
8.3.00.0070.00019.02
8.2.250.0080.00017.15
8.2.240.0120.00016.96
8.2.230.0160.00022.58
8.2.220.0070.01137.54
8.2.210.0120.00326.77
8.2.200.0090.00016.50
8.2.190.0120.00916.75
8.2.180.0070.00725.92
8.2.170.0180.00418.95
8.2.160.0100.00322.96
8.2.150.0100.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00219.66
8.2.110.0070.00320.38
8.2.100.0080.00317.91
8.2.90.0060.00617.88
8.2.80.0000.00817.97
8.2.70.0040.00418.05
8.2.60.0030.00617.63
8.2.50.0050.00317.75
8.2.40.0000.00820.07
8.2.30.0040.00418.01
8.2.20.0030.00517.71
8.2.10.0000.00818.04
8.2.00.0050.00218.05
8.1.300.0150.00018.17
8.1.290.0000.00930.84
8.1.280.0030.01025.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.91
8.1.230.0050.00522.20
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00017.35
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0000.00818.49
8.1.160.0020.00521.98
8.1.150.0070.00018.96
8.1.140.0000.00717.46
8.1.130.0070.00017.83
8.1.120.0000.00717.46
8.1.110.0060.00317.53
8.1.100.0000.00717.50
8.1.90.0040.00417.34
8.1.80.0000.00717.35
8.1.70.0000.00717.30
8.1.60.0060.00317.56
8.1.50.0000.00817.57
8.1.40.0070.00017.50
8.1.30.0060.00317.68
8.1.20.0000.00817.63
8.1.10.0050.00317.45
8.1.00.0090.00017.50
8.0.300.0040.00419.64
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0040.00416.75
8.0.260.0030.00317.27
8.0.250.0060.00316.95
8.0.240.0030.00516.99
8.0.230.0030.00516.93
8.0.220.0030.00316.79
8.0.210.0070.00016.80
8.0.200.0000.00616.93
8.0.190.0040.00416.89
8.0.180.0000.00716.91
8.0.170.0040.00416.82
8.0.160.0040.00416.95
8.0.150.0040.00416.79
8.0.140.0000.00716.88
8.0.130.0030.00313.37
8.0.120.0080.00016.89
8.0.110.0000.00716.82
8.0.100.0040.00416.75
8.0.90.0040.00416.84
8.0.80.0100.00716.89
8.0.70.0000.00716.84
8.0.60.0000.00716.73
8.0.50.0040.00416.87
8.0.30.0140.00717.10
8.0.20.0160.00217.40
8.0.10.0000.00816.90
8.0.00.0070.01516.85
7.4.330.0050.00015.03
7.4.320.0060.00016.61
7.4.300.0030.00316.52
7.4.290.0080.00316.56
7.4.280.0040.00416.59
7.4.270.0070.00016.49
7.4.260.0070.00316.49
7.4.250.0000.00716.59
7.4.240.0020.00516.56
7.4.230.0000.00716.49
7.4.220.0030.00316.61
7.4.210.0110.00516.50
7.4.200.0000.00716.44
7.4.160.0040.01216.53
7.4.150.0150.00317.40
7.4.140.0120.00517.86
7.4.130.0070.01316.61
7.4.120.0100.00916.48
7.4.110.0060.01116.54
7.4.100.0160.00616.66
7.4.90.0130.00416.39
7.4.80.0100.00719.39
7.4.70.0070.01416.63
7.4.60.0060.00916.46
7.4.50.0020.00216.51
7.4.40.0090.00916.58
7.4.30.0190.00316.56
7.4.10.0060.01214.77
7.4.00.0080.00715.01
7.3.330.0000.00513.39
7.3.320.0100.00313.31
7.3.310.0000.00716.48
7.3.300.0000.00616.37
7.3.290.0070.00016.39
7.3.280.0060.00916.38
7.3.270.0190.00017.40
7.3.260.0070.01016.51
7.3.250.0100.00916.39
7.3.240.0060.01316.49
7.3.230.0160.00016.62
7.3.210.0130.00316.57
7.3.200.0080.00819.39
7.3.190.0120.00316.40
7.3.180.0140.00416.38
7.3.170.0040.01316.63
7.3.160.0110.00916.26
7.3.130.0070.01014.74
7.3.120.0070.01014.91
7.3.110.0090.00814.81
7.3.100.0080.00514.84
7.3.90.0050.01214.75
7.3.80.0090.00614.96
7.3.70.0020.01314.83
7.3.60.0040.01014.64
7.3.50.0050.00914.83
7.3.40.0040.00814.70
7.3.30.0040.01014.79
7.3.20.0090.00716.67
7.3.10.0050.00816.63
7.3.00.0090.00516.66
7.2.330.0050.01116.55
7.2.320.0090.00916.61
7.2.310.0110.00616.84
7.2.300.0140.00616.63
7.2.290.0110.01116.52
7.2.260.0060.00615.20
7.2.250.0080.00814.79
7.2.240.0060.01114.93
7.2.230.0050.01115.01
7.2.220.0090.00714.98
7.2.210.0100.00815.03
7.2.200.0080.00714.92
7.2.190.0080.00715.01
7.2.180.0080.00815.03
7.2.170.0060.00814.95
7.2.160.0030.01015.14
7.2.150.0040.01216.82
7.2.140.0030.01616.60
7.2.130.0110.00216.68
7.2.120.0060.01116.57
7.2.110.0090.00616.58
7.2.100.0110.00616.63
7.2.90.0080.00816.66
7.2.80.0070.01016.62
7.2.70.0080.00716.98
7.2.60.0110.00616.73
7.2.50.0090.01016.69
7.2.40.0100.00816.75
7.2.30.0160.00316.59
7.2.20.0030.01216.74
7.2.10.0120.00616.75
7.2.00.0120.00317.00
7.1.330.0020.01115.74
7.1.320.0040.00615.72
7.1.310.0080.00815.73
7.1.300.0090.00515.72
7.1.290.0050.00815.67
7.1.280.0060.00815.79
7.1.270.0040.01015.72
7.1.260.0080.00615.74
7.1.250.0050.00715.78
7.1.240.0030.01215.75
7.1.230.0100.00715.59
7.1.220.0060.00615.55
7.1.210.0000.01215.70
7.1.200.0070.00215.60
7.1.190.0110.00015.88
7.1.180.0060.00615.67
7.1.170.0070.00715.78
7.1.160.0080.00415.83
7.1.150.0030.00715.66
7.1.140.0000.01215.88
7.1.130.0100.00315.85
7.1.120.0000.01015.75
7.1.110.0080.00415.89
7.1.100.0070.00715.91
7.1.90.0090.00615.67
7.1.80.0060.00615.73
7.1.70.0020.00816.38
7.1.60.0060.01317.83
7.1.50.0120.00816.27
7.1.40.0000.01415.85
7.1.30.0100.00715.60
7.1.20.0030.00815.65
7.1.10.0040.01115.69
7.1.00.0020.04419.15
7.0.330.0040.00715.27
7.0.320.0060.00915.23
7.0.310.0100.00315.12
7.0.300.0040.01115.30
7.0.290.0000.00815.23
7.0.280.0000.01315.20
7.0.270.0070.00715.54
7.0.260.0040.00415.39
7.0.250.0000.01215.28
7.0.240.0070.00715.22
7.0.230.0090.00015.26
7.0.220.0050.00315.05
7.0.210.0000.01415.46
7.0.200.0010.00615.95
7.0.190.0000.01215.10
7.0.180.0060.00315.28
7.0.170.0110.00315.30
7.0.160.0030.01015.43
7.0.150.0030.01015.34
7.0.140.0000.00915.36
7.0.130.0070.00715.46
7.0.120.0080.00315.48
7.0.110.0000.01215.51
7.0.100.0000.01315.01
7.0.90.0000.01215.25
7.0.80.0000.01215.23
7.0.70.0000.00815.47
7.0.60.0040.03417.61
7.0.50.0070.04216.67
7.0.40.0130.04016.72
7.0.30.0180.04016.65
7.0.20.0170.03516.68
7.0.10.0160.02316.68
7.0.00.0050.04916.63
5.6.400.0070.01114.49
5.6.390.0060.00614.49
5.6.380.0060.00314.41
5.6.370.0060.00914.24
5.6.360.0070.00714.54
5.6.350.0030.01014.04
5.6.340.0000.00814.04
5.6.330.0000.01414.45
5.6.320.0040.01114.05
5.6.310.0000.00914.44
5.6.300.0060.00314.39
5.6.290.0090.00914.39
5.6.280.0050.03717.77
5.6.270.0030.01414.12
5.6.260.0070.00714.52
5.6.250.0030.00614.18
5.6.240.0070.00714.46
5.6.230.0090.00314.43
5.6.220.0030.01014.43
5.6.210.0100.04317.60
5.6.200.0070.04416.38
5.6.190.0030.04217.47
5.6.180.0140.03217.33
5.6.170.0200.02017.46
5.6.160.0050.02217.45
5.6.150.0130.03716.18
5.6.140.0060.03416.53
5.6.130.0030.04416.26
5.6.120.0070.04817.71
5.6.110.0100.04017.62
5.6.100.0060.03617.86
5.6.90.0060.04517.76
5.6.80.0040.04517.43
5.6.70.0200.04017.38
5.6.60.0030.00714.30
5.6.50.0060.00914.32
5.6.40.0060.00314.32
5.6.30.0060.00614.07
5.6.20.0030.01014.22
5.6.10.0000.01414.14
5.6.00.0050.00514.48
5.5.380.0130.00614.39
5.5.370.0000.01514.43
5.5.360.0030.01014.63
5.5.350.0060.04317.53
5.5.340.0020.05216.04
5.5.330.0030.03217.26
5.5.320.0170.04017.28
5.5.310.0130.03017.49
5.5.300.0000.02916.15
5.5.290.0030.04516.07
5.5.280.0070.04717.68
5.5.270.0050.03017.44
5.5.260.0050.02517.57
5.5.250.0150.03717.43
5.5.240.0080.04317.35
5.5.230.0040.00714.34
5.5.220.0040.00814.19
5.5.210.0060.01014.04
5.5.200.0060.00313.99
5.5.190.0030.00714.20
5.5.180.0030.00914.45
5.5.170.0030.01213.87
5.5.160.0070.00714.43
5.5.150.0060.00314.39
5.5.140.0070.00714.57
5.5.130.0030.01014.43
5.5.120.0000.01414.23
5.5.110.0040.00714.16
5.5.100.0060.00613.89
5.5.90.0070.00714.48
5.5.80.0070.00714.18
5.5.70.0090.00314.48
5.5.60.0040.01114.46
5.5.50.0110.00014.14
5.5.40.0060.00914.59
5.5.30.0030.00714.14
5.5.20.0040.00814.45
5.5.10.0030.01314.37
5.5.00.0040.01114.31
5.4.450.0600.03515.07
5.4.440.0400.02515.23
5.4.430.0090.01415.40
5.4.420.0090.02815.37
5.4.410.0330.00015.00
5.4.400.0350.00314.89
5.4.390.0330.00114.86
5.4.380.0350.00214.79
5.4.370.0320.00514.90
5.4.360.0350.00215.05
5.4.350.0360.00114.99
5.4.340.0320.00514.83
5.4.330.0030.00610.89
5.4.320.0400.00314.80
5.4.310.0360.00215.08
5.4.300.0350.00314.68
5.4.290.0370.00214.93
5.4.280.0320.00514.90
5.4.270.0380.00015.06
5.4.260.0370.00314.83
5.4.250.0360.00414.76
5.4.240.0330.00315.07
5.4.230.0320.00314.84
5.4.220.0320.00614.80
5.4.210.0400.00514.79
5.4.200.0330.00213.80
5.4.190.0390.00115.01
5.4.180.0320.00214.88
5.4.170.0330.00314.84
5.4.160.0300.00614.84
5.4.150.0330.00014.84
5.4.140.0330.00213.66
5.4.130.0330.00013.77
5.4.120.0340.00213.78
5.4.110.0320.00213.73
5.4.100.0380.00313.76
5.4.90.0350.00013.76
5.4.80.0320.00413.85
5.4.70.0320.00413.71
5.4.60.0320.00613.61
5.4.50.0300.00213.76
5.4.40.0300.00413.78
5.4.30.0300.00613.61
5.4.20.0320.00513.64
5.4.10.0360.00113.69
5.4.00.0300.00513.36
5.3.290.0630.00014.76
5.3.280.0600.00014.59
5.3.270.0630.00014.62
5.3.260.0630.00014.73
5.3.250.0600.00014.71
5.3.240.0630.00014.58
5.3.230.0600.00014.64
5.3.220.0600.00014.55
5.3.210.0630.00014.61
5.3.200.0600.00014.77
5.3.190.0630.00014.61
5.3.180.0630.00014.60
5.3.170.0600.00014.75
5.3.160.0570.00014.68
5.3.150.0600.00014.66
5.3.140.0730.00014.73
5.3.130.0600.00014.71
5.3.120.0630.00014.56
5.3.110.0630.00014.57
5.3.100.0630.00014.02
5.3.90.0630.00014.05
5.3.80.0570.00014.09
5.3.70.0570.00014.14
5.3.60.0600.00014.00
5.3.50.0570.00013.89
5.3.40.0570.00013.97
5.3.30.0530.00014.03
5.3.20.0570.00013.67
5.3.10.0600.00013.77
5.3.00.0570.00013.76
5.2.170.0470.00011.18
5.2.160.0500.00011.22
5.2.150.0530.00011.27
5.2.140.0600.00011.16
5.2.130.0530.00011.21
5.2.120.0570.00011.10
5.2.110.0430.00011.20
5.2.100.0430.00011.23
5.2.90.0470.00011.23
5.2.80.0500.00011.12
5.2.70.0470.00011.21
5.2.60.0470.00011.09
5.2.50.0470.00011.22
5.2.40.0470.00011.20
5.2.30.0470.00011.21
5.2.20.0470.00011.01
5.2.10.0530.00010.96
5.2.00.0470.00010.75
5.1.60.0430.00010.07
5.1.50.0430.00010.18
5.1.40.0400.00010.00
5.1.30.0430.00010.35
5.1.20.0470.00010.38
5.1.10.0400.00010.20
5.1.00.0400.00010.26
5.0.50.0330.0008.59
5.0.40.0300.0008.52
5.0.30.0470.0008.24
5.0.20.0400.0008.18
5.0.10.0300.0008.36
5.0.00.0600.0008.14
4.4.90.0330.0005.96
4.4.80.0230.0005.88
4.4.70.0230.0005.93
4.4.60.0230.0005.88
4.4.50.0230.0005.95
4.4.40.0500.0005.93
4.4.30.0270.0005.91
4.4.20.0230.0006.00
4.4.10.0230.0005.97
4.4.00.0370.0005.92
4.3.110.0230.0005.93
4.3.100.0230.0005.83
4.3.90.0230.0005.88
4.3.80.0370.0005.79
4.3.70.0230.0005.77
4.3.60.0230.0005.84
4.3.50.0230.0005.91
4.3.40.0370.0005.88
4.3.30.0230.0004.64
4.3.20.0230.0004.57
4.3.10.0270.0004.49
4.3.00.0000.01716.23

preferences:
79.49 ms | 403 KiB | 5 Q