3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('VOID', INF); function ifsetter($mElement, $mDefault = '') { if (!isset($mElement) OR $mElement === VOID){ $mElement = $mDefault; } return $mElement; } $t = 123; echo ifsetter($t['aaa'], 'hello'); // return 'hello' and set $t['aaa'] = 'hello';

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.60.0070.01316.63
8.3.50.0070.01416.64
8.3.40.0070.01121.94
8.3.30.0110.00818.79
8.3.20.0060.00324.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.180.0070.00725.92
8.2.170.0070.01118.79
8.2.160.0030.01222.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0060.00322.07
8.2.100.0070.00419.77
8.2.90.0070.00317.75
8.2.80.0060.00318.86
8.2.70.0030.00617.63
8.2.60.0000.00817.67
8.2.50.0030.00518.07
8.2.40.0040.00418.22
8.2.30.0000.00818.18
8.2.20.0070.00018.02
8.2.10.0050.00221.02
8.2.00.0000.00719.34
8.1.280.0160.00325.92
8.1.270.0070.00323.99
8.1.260.0120.00328.09
8.1.250.0070.00028.09
8.1.240.0030.00723.97
8.1.230.0100.00318.95
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0030.00517.22
8.1.180.0050.00318.10
8.1.170.0040.00418.61
8.1.160.0070.00018.93
8.1.150.0050.00318.88
8.1.140.0050.00318.88
8.1.130.0040.00421.91
8.1.120.0040.00417.51
8.1.110.0050.00317.51
8.1.100.0030.00517.37
8.1.90.0060.00317.45
8.1.80.0040.00417.46
8.1.70.0000.00717.47
8.1.60.0030.00517.58
8.1.50.0000.00817.54
8.1.40.0040.00417.48
8.1.30.0040.00417.48
8.1.20.0060.00317.60
8.1.10.0000.00717.57
8.1.00.0000.00817.48
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.44
8.0.270.0050.00318.07
8.0.260.0050.00218.43
8.0.250.0000.00716.96
8.0.240.0000.00717.03
8.0.230.0030.00317.00
8.0.220.0000.00716.96
8.0.210.0030.00316.96
8.0.200.0040.00417.05
8.0.190.0050.00316.88
8.0.180.0050.00216.95
8.0.170.0000.00816.95
8.0.160.0060.00416.85
8.0.150.0000.00716.92
8.0.140.0030.00716.91
8.0.130.0000.00613.40
8.0.120.0040.00416.93
8.0.110.0000.00716.88
8.0.100.0070.00016.84
8.0.90.0040.00416.86
8.0.80.0060.00916.85
8.0.70.0040.00416.88
8.0.60.0070.00016.83
8.0.50.0080.00016.81
8.0.30.0100.00717.21
8.0.20.0110.00817.14
8.0.10.0000.00817.10
8.0.00.0100.00716.73
7.4.330.0000.00615.55
7.4.320.0070.00316.61
7.4.300.0030.00316.44
7.4.290.0000.00816.50
7.4.280.0000.00816.59
7.4.270.0040.00416.62
7.4.260.0050.00313.25
7.4.250.0000.00816.52
7.4.240.0000.00716.63
7.4.230.0030.00316.54
7.4.220.0010.00616.51
7.4.210.0080.00916.57
7.4.200.0040.00416.38
7.4.130.0100.01016.50
7.4.120.0170.00016.49
7.4.110.0040.01516.40
7.4.100.0080.01716.48
7.4.90.0120.00616.53
7.4.80.0130.00616.52
7.4.70.0070.01116.36
7.4.60.0150.00316.29
7.4.50.0040.01216.38
7.4.40.0070.01116.36
7.4.30.0080.00816.46
7.4.20.0130.01016.46
7.4.10.0110.00716.49
7.4.00.0140.00316.69
7.3.330.0030.00616.15
7.3.320.0000.00513.25
7.3.310.0000.00716.21
7.3.300.0030.00316.30
7.3.290.0070.00916.28
7.3.260.0070.01116.29
7.3.230.0140.00716.12
7.3.220.0100.01016.07
7.3.210.0120.01316.38
7.3.200.0060.01916.49
7.3.190.0120.00816.64
7.3.180.0130.00816.15
7.3.170.0070.01016.44
7.3.160.0070.01316.26
7.3.150.0140.00416.45
7.3.140.0090.00816.32
7.3.130.0100.00616.37
7.3.120.0090.00916.34
7.3.110.0090.00916.53
7.3.100.0080.00816.19
7.3.90.0150.00316.40
7.3.80.0110.00816.16
7.3.70.0180.00016.45
7.3.60.0140.00316.41
7.3.50.0030.01316.20
7.3.40.0070.01016.23
7.3.30.0110.00616.36
7.3.20.0140.01216.47
7.3.10.0140.00316.35
7.3.00.0150.00316.18
7.2.340.0090.01416.62
7.2.330.0140.01116.66
7.2.320.0150.01116.60
7.2.310.0160.00816.43
7.2.300.0200.00016.22
7.2.290.0030.01516.81
7.2.280.0070.01116.76
7.2.270.0050.01416.70
7.2.260.0080.01216.22
7.2.250.0090.01316.74
7.2.240.0150.00416.70
7.2.230.0100.00716.67
7.2.220.0090.01016.73
7.2.210.0140.00716.39
7.2.200.0140.00916.42
7.2.190.0070.01116.50
7.2.180.0110.00816.64
7.2.170.0090.00916.58
7.2.160.0030.01416.46
7.2.150.0200.00016.61
7.2.140.0050.01316.64
7.2.130.0070.01416.59
7.2.120.0190.00016.66
7.2.110.0130.00716.68
7.2.100.0050.01416.50
7.2.90.0090.00916.64
7.2.80.0140.00416.60
7.2.70.0090.00916.50
7.2.60.0240.01016.60
7.2.50.0120.00616.74
7.2.40.0160.00316.66
7.2.30.0090.01216.77
7.2.20.0090.01216.60
7.2.10.0140.00316.66
7.2.00.0070.01116.45

preferences:
33.76 ms | 400 KiB | 5 Q