3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isset_or(&$check, $alternate = NULL) { return (isset($check)) ? $check : $alternate; } $orig = ['alpha' => 1]; $tested = $orig; echo 'isset_or($tested["beta"]): ', isset_or($tested['beta'], 'nope'); var_export([ '$orig' => $orig, '$tested' => $tested, 'array_key_exists("beta")' => [ '$orig' => array_key_exists('beta', $orig), '$tested' => array_key_exists('beta', $tested), ], ]);

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.4.10.0040.00417.72
8.3.140.0050.00516.65
8.3.130.0100.01018.55
8.3.120.0120.00320.70
8.3.110.0130.00620.94
8.3.100.0080.00024.06
8.3.90.0090.00626.77
8.3.80.0060.00317.97
8.3.70.0130.00616.59
8.3.60.0070.01118.56
8.3.50.0110.00921.13
8.3.40.0040.01119.24
8.3.30.0110.00319.22
8.3.20.0050.00821.07
8.3.10.0100.00222.62
8.3.00.0050.00618.99
8.2.260.0060.01218.75
8.2.250.0040.01116.78
8.2.240.0000.00718.86
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0110.00016.63
8.2.190.0080.01216.63
8.2.180.0170.00316.75
8.2.170.0110.00320.98
8.2.160.0070.01120.23
8.2.150.0080.00421.63
8.2.140.0060.00622.42
8.2.130.0090.00123.34
8.2.120.0050.00620.11
8.2.110.0030.00820.09
8.2.100.0110.00118.59
8.2.90.0030.00919.60
8.2.80.0090.00219.98
8.2.70.0070.00518.13
8.2.60.0070.00418.11
8.2.50.0010.01018.37
8.2.40.0070.00419.10
8.2.30.0040.00719.04
8.2.20.0060.00618.22
8.2.10.0020.00918.36
8.2.00.0080.00418.51
8.1.300.0120.00620.12
8.1.290.0030.00618.88
8.1.280.0100.00325.92
8.1.270.0050.00723.36
8.1.260.0040.00724.19
8.1.250.0040.00725.16
8.1.240.0100.00119.68
8.1.230.0100.00219.75
8.1.220.0070.00518.27
8.1.210.0040.00718.56
8.1.200.0050.00717.85
8.1.190.0090.00217.90
8.1.180.0020.01018.23
8.1.170.0090.00318.14
8.1.160.0000.01118.68
8.1.150.0070.00418.78
8.1.140.0050.00718.06
8.1.130.0070.00618.90
8.1.120.0100.00317.92
8.1.110.0040.01017.89
8.1.100.0070.00618.54
8.1.90.0060.00617.86
8.1.80.0040.00818.43
8.1.70.0030.00918.02
8.1.60.0060.00718.07
8.1.50.0070.00617.98
8.1.40.0100.00518.12
8.1.30.0050.00818.32
8.1.20.0080.00418.82
8.1.10.0030.00918.11
8.1.00.0100.00218.07
8.0.300.0060.00618.88
8.0.290.0110.00317.27
8.0.280.0110.00418.07
8.0.270.0090.00517.35
8.0.260.0130.00218.03
8.0.250.0050.01017.43
8.0.240.0160.00017.35
8.0.230.0140.00217.24
8.0.220.0090.00717.13
8.0.210.0120.00517.29
8.0.200.0120.00317.28
8.0.190.0110.00717.23
8.0.180.0120.00217.30
8.0.170.0120.00517.29
8.0.160.0070.00717.25
8.0.150.0100.00517.21
8.0.140.0140.00417.12
8.0.130.0090.00615.43
8.0.120.0050.01117.12
8.0.110.0070.01017.08
8.0.100.0080.00717.13
8.0.90.0090.00717.06
8.0.80.0180.00317.36
8.0.70.0040.00717.27
8.0.60.0120.00417.25
8.0.50.0150.00217.21
8.0.30.0100.00917.32
8.0.20.0140.00717.50
8.0.10.0110.00317.35
8.0.00.0120.00617.76
7.4.330.0040.00616.23
7.4.320.0130.00317.02
7.4.300.0120.00616.96
7.4.290.0120.00816.94
7.4.280.0100.00816.98
7.4.270.0140.00616.94
7.4.260.0150.00616.87
7.4.250.0160.00416.91
7.4.240.0140.00116.83
7.4.230.0160.00316.88
7.4.220.0120.01116.90
7.4.210.0120.00816.79
7.4.200.0110.00516.99
7.4.190.0220.00517.19
7.4.180.0250.00017.86
7.4.160.0130.00916.85
7.4.150.0150.00717.45
7.4.140.0160.00817.61
7.4.130.0130.00816.86
7.4.120.0070.01516.83
7.4.110.0140.01316.71
7.4.100.0210.00616.90
7.4.90.0170.00716.68
7.4.80.0180.00818.20
7.4.70.0170.00916.89
7.4.60.0140.00816.99
7.4.50.0160.00416.95
7.4.40.0160.00716.87
7.4.30.0180.01016.91
7.4.20.0290.00317.27
7.4.10.0180.00917.12
7.4.00.0130.00815.65
7.3.330.0100.00515.22
7.3.320.0180.00315.23
7.3.310.0110.00716.54
7.3.300.0090.00816.97
7.3.290.0130.00316.52
7.3.280.0120.00716.48
7.3.270.0150.00717.20
7.3.260.0160.00616.66
7.3.250.0120.01016.60
7.3.240.0220.00316.72
7.3.230.0130.01016.82
7.3.220.0240.00416.79
7.3.210.0110.01116.64
7.3.200.0170.00518.25
7.3.190.0190.00416.73
7.3.180.0140.00916.57
7.3.170.0190.00416.99
7.3.160.0170.00816.71
7.3.150.0270.00317.02
7.3.140.0320.00016.97
7.3.130.0200.01016.85
7.3.120.0140.00815.72
7.3.110.0110.00815.85
7.3.100.0090.01015.55
7.3.90.0120.00715.79
7.3.80.0100.00815.53
7.3.70.0100.00615.95
7.3.60.0100.00915.63
7.3.50.0090.00815.43
7.3.40.0090.00815.51
7.3.30.0130.00515.66
7.3.20.0160.00316.80
7.3.10.0050.01416.79
7.3.00.0130.00516.69
7.2.340.0160.01217.30
7.2.330.0190.00616.84
7.2.320.0290.01416.85
7.2.310.0160.01116.94
7.2.300.0210.00416.67
7.2.290.0130.01017.11
7.2.280.0230.00317.07
7.2.270.0240.00317.59
7.2.260.0210.00617.12
7.2.250.0100.01315.62
7.2.240.0160.00515.90
7.2.230.0100.00815.62
7.2.220.0140.00515.56
7.2.210.0120.00515.67
7.2.200.0090.01015.74
7.2.190.0080.01015.80
7.2.180.0110.00715.88
7.2.170.0140.00315.82
7.2.160.0200.00617.57
7.2.150.0300.01517.51
7.2.140.0240.00717.43
7.2.130.0240.00917.31
7.2.120.0240.00817.18
7.2.110.0290.00017.48
7.2.100.0210.00417.35
7.2.90.0250.00417.76
7.2.80.0200.01217.32
7.2.70.0250.00417.71
7.2.60.0140.00517.34
7.2.50.0300.00017.72
7.2.40.0230.00417.31
7.2.30.0220.00617.64
7.2.20.0270.00317.57
7.2.10.0170.01017.67
7.2.00.0040.01118.51
7.1.330.0090.00815.93
7.1.320.0130.00516.09
7.1.310.0090.00815.81
7.1.300.0100.00816.08
7.1.290.0120.00515.88
7.1.280.0080.00915.96
7.1.270.0280.00716.19
7.1.260.0110.00715.87
7.1.250.0190.00916.13
7.1.240.0240.00316.32
7.1.230.0180.00916.42
7.1.220.0220.00416.07
7.1.210.0190.00616.47
7.1.200.0110.00716.00
7.1.190.0220.00716.29
7.1.180.0210.00416.36
7.1.170.0170.00816.13
7.1.160.0190.00417.42
7.1.150.0220.00416.13
7.1.140.0100.01616.38
7.1.130.0160.01016.07
7.1.120.0220.00316.13
7.1.110.0180.00716.45
7.1.100.0260.00617.07
7.1.90.0210.00616.38
7.1.80.0220.00316.51
7.1.70.0140.00516.77
7.1.60.0190.00718.06
7.1.50.0320.00517.00
7.1.40.0240.00716.32
7.1.30.0240.00816.59
7.1.20.0250.00816.37
7.1.10.0250.00616.29
7.1.00.0090.03819.34
7.0.330.0180.00916.07
7.0.320.0220.00316.07
7.0.310.0220.00416.07
7.0.300.0240.00316.07
7.0.290.0210.00416.07
7.0.280.0230.00416.07
7.0.270.0210.00616.07
7.0.260.0230.00516.07
7.0.250.0190.00316.07
7.0.240.0180.00716.12
7.0.230.0170.01016.12
7.0.220.0250.00016.07
7.0.210.0190.00516.13
7.0.200.0120.00516.47
7.0.190.0240.00316.07
7.0.180.0170.00916.07
7.0.170.0570.00016.09
7.0.160.0230.00616.13
7.0.150.0250.00616.07
7.0.140.0260.00416.13
7.0.130.0270.00316.30
7.0.120.0260.00716.13
7.0.110.0190.00617.24
7.0.100.0190.04118.05
7.0.90.0230.02817.94
7.0.80.0190.02217.96
7.0.70.0140.02517.95
7.0.60.0180.03218.01
7.0.50.0080.02618.19
7.0.40.0090.02418.12
7.0.30.0070.02318.15
7.0.20.0120.02418.06
7.0.10.0150.02518.11
7.0.00.0150.02018.01
5.6.400.0150.00716.49
5.6.390.0140.01116.76
5.6.380.0200.00316.74
5.6.370.0240.00016.53
5.6.360.0240.00016.56
5.6.350.0190.00316.49
5.6.340.0210.00316.78
5.6.330.0110.01116.93
5.6.320.0150.00716.80
5.6.310.0100.01616.70
5.6.300.0170.01016.57
5.6.290.0180.00916.53
5.6.280.0120.04018.79
5.6.270.0220.00616.88
5.6.260.0290.00016.78
5.6.250.0130.02318.63
5.6.240.0120.02818.70
5.6.230.0140.02218.74
5.6.220.0150.03218.86
5.6.210.0100.02118.68
5.6.200.0070.04318.96
5.6.190.0120.02718.98
5.6.180.0140.02219.02
5.6.170.0090.02519.00
5.6.160.0120.03018.99
5.6.150.0120.02318.90
5.6.140.0110.02218.95
5.6.130.0140.02218.99
5.6.120.0110.02518.95
5.6.110.0090.02718.94
5.6.100.0090.02518.96
5.6.90.0100.04119.00
5.6.80.0130.02618.64
5.6.70.0160.03718.54
5.6.60.0160.03818.62
5.6.50.0100.04218.58
5.6.40.0140.04218.77
5.6.30.0130.04518.71
5.6.20.0120.04318.66
5.6.10.0160.04218.67
5.6.00.0140.04118.73
5.5.380.0110.02518.54
5.5.370.0100.02618.55
5.5.360.0170.03818.46
5.5.350.0110.04318.47
5.5.340.0070.02718.73
5.5.330.0110.02418.82
5.5.320.0120.02318.80
5.5.310.0120.03518.71
5.5.300.0110.02118.75
5.5.290.0130.02518.69
5.5.280.0120.02318.75
5.5.270.0110.02318.66
5.5.260.0160.02618.75
5.5.250.0130.02718.78
5.5.240.0080.02418.48
5.5.230.0150.03618.37
5.5.220.0130.04018.27
5.5.210.0190.03718.47
5.5.200.0090.04218.34
5.5.190.0080.04718.41
5.5.180.0120.04318.38
5.5.170.0220.00416.55
5.5.160.0110.03018.29
5.5.150.0180.04018.34
5.5.140.0160.03818.26
5.5.130.0150.02518.20
5.5.120.0120.04318.40
5.5.110.0110.02718.25
5.5.100.0160.03718.39
5.5.90.0110.02618.43
5.5.80.0130.02618.42
5.5.70.0090.04118.39
5.5.60.0080.04518.40
5.5.50.0110.03918.35
5.5.40.0130.03518.36
5.5.30.0110.03518.24
5.5.20.0120.02718.43
5.5.10.0180.03418.32
5.5.00.0150.04018.29
5.4.450.0160.02017.71
5.4.440.0130.02817.63
5.4.430.0100.02317.67
5.4.420.0150.03317.76
5.4.410.0120.01817.75
5.4.400.0140.02817.60
5.4.390.0140.04017.55
5.4.380.0130.04017.60
5.4.370.0160.03917.47
5.4.360.0190.03717.55
5.4.350.0090.04117.56
5.4.340.0100.04517.62
5.4.330.0250.00016.07
5.4.320.0170.03217.64
5.4.310.0150.03017.46
5.4.300.0150.03717.65
5.4.290.0150.03317.63
5.4.280.0070.03017.60
5.4.270.0100.04217.63
5.4.260.0140.03517.55
5.4.250.0130.03917.47
5.4.240.0120.03517.60
5.4.230.0180.03517.63
5.4.220.0090.03017.60
5.4.210.0060.04017.54
5.4.200.0160.03517.61
5.4.190.0120.03817.62
5.4.180.0170.03717.65
5.4.170.0120.03817.60
5.4.160.0120.03417.64
5.4.150.0070.04517.50
5.4.140.0150.03316.10
5.4.130.0080.03616.21
5.4.120.0120.04016.23
5.4.110.0100.03916.21
5.4.100.0120.03716.25
5.4.90.0100.04016.27
5.4.80.0090.04016.28
5.4.70.0120.03616.16
5.4.60.0080.03716.19
5.4.50.0080.02716.28
5.4.40.0090.03716.21
5.4.30.0100.03816.27
5.4.20.0060.02816.19
5.4.10.0080.03616.23
5.4.00.0120.03415.94

preferences:
47.42 ms | 403 KiB | 5 Q