3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['name' => 'Lorenzo']; $name = $data[’name’] ?? "Default Name"; echo $name; // equivalente a $name = isset($data[’name’]) ? $data[’name’] : "Default Name"; echo $name;

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.20.0100.01018.05
8.4.10.0100.01017.54
8.3.150.0190.00020.82
8.3.140.0090.00916.64
8.3.130.0050.00318.61
8.3.120.0040.01420.85
8.3.110.0080.00020.94
8.3.100.0000.00824.06
8.3.90.0070.00726.77
8.3.80.0070.00319.36
8.3.70.0060.00918.55
8.3.60.0110.00416.88
8.3.50.0080.01022.83
8.3.40.0110.00418.86
8.3.30.0090.00619.23
8.3.20.0040.00418.57
8.3.10.0040.00423.66
8.3.00.0050.00219.20
8.2.270.0160.00317.01
8.2.260.0040.00416.95
8.2.250.0080.00016.75
8.2.240.0090.00017.09
8.2.230.0060.00322.58
8.2.220.0070.00737.54
8.2.210.0040.00426.77
8.2.200.0080.00318.88
8.2.190.0130.00916.63
8.2.180.0070.01416.50
8.2.170.0140.00718.99
8.2.160.0070.00722.96
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00021.08
8.2.110.0030.00619.33
8.2.100.0090.00317.75
8.2.90.0040.00419.20
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00717.68
8.2.50.0030.00518.07
8.2.40.0000.00717.91
8.2.30.0000.00718.12
8.2.20.0040.00417.65
8.2.10.0040.00419.87
8.2.00.0070.00018.02
8.1.310.0040.01516.48
8.1.300.0030.00716.55
8.1.290.0100.00030.84
8.1.280.0140.00025.92
8.1.270.0050.00320.20
8.1.260.0070.00026.35
8.1.250.0110.00428.09
8.1.240.0030.00622.05
8.1.230.0040.00717.48
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00417.23
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0040.00422.02
8.1.150.0000.00718.82
8.1.140.0000.00717.41
8.1.130.0000.00717.69
8.1.120.0000.00717.37
8.1.110.0030.00417.35
8.1.100.0000.00817.36
8.1.90.0000.00717.41
8.1.80.0040.00417.42
8.1.70.0000.00717.35
8.1.60.0000.00817.57
8.1.50.0060.00317.43
8.1.40.0040.00417.38
8.1.30.0080.00017.62
8.1.20.0000.00717.69
8.1.10.0040.00417.56
8.1.00.0030.00917.52
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0000.00718.44
8.0.270.0040.00416.82
8.0.260.0000.00617.30
8.0.250.0040.00417.07
8.0.240.0000.00716.91
8.0.230.0040.00416.98
8.0.220.0050.00316.92
8.0.210.0000.00716.93
8.0.200.0060.00016.93
8.0.190.0040.00417.02
8.0.180.0000.00817.03
8.0.170.0080.00016.96
8.0.160.0030.00317.00
8.0.150.0040.00416.80
8.0.140.0000.00716.87
8.0.130.0060.00313.38
8.0.120.0060.00316.80
8.0.110.0050.00317.00
8.0.100.0050.00316.75
8.0.90.0050.00316.95
8.0.80.0060.00917.02
8.0.70.0000.00716.84
8.0.60.0050.00216.82
8.0.50.0030.00516.75
8.0.30.0130.00517.05
8.0.20.0090.00917.40
8.0.10.0000.00717.06
8.0.00.0080.01017.01
7.4.330.0050.00215.03
7.4.320.0030.00316.60
7.4.300.0080.00016.50
7.4.290.0040.00416.57
7.4.280.0000.00816.49
7.4.270.0030.00316.41
7.4.260.0050.00316.41
7.4.250.0040.00416.46
7.4.240.0020.00516.48
7.4.230.0000.00716.62
7.4.220.0060.01816.46
7.4.210.0080.01116.63
7.4.200.0000.00716.63
7.4.160.0030.01316.44
7.4.150.0070.01117.40
7.4.140.0110.01017.86
7.4.130.0080.01316.63
7.4.120.0090.00916.59
7.4.110.0070.01016.65
7.4.100.0060.01516.50
7.4.90.0110.00716.57
7.4.80.0140.00419.39
7.4.70.0090.01216.51
7.4.60.0000.01616.41
7.4.50.0020.00216.54
7.4.40.0080.00816.55
7.4.30.0130.00416.59
7.4.10.0100.01014.80
7.4.00.0050.01315.09
7.3.330.0060.00013.13
7.3.320.0030.00313.13
7.3.310.0030.00316.16
7.3.300.0060.00016.07
7.3.290.0060.00016.34
7.3.280.0080.00916.31
7.3.270.0130.00317.40
7.3.260.0080.00916.61
7.3.250.0100.00816.33
7.3.240.0060.01216.54
7.3.230.0070.01316.39
7.3.210.0130.00616.66
7.3.200.0060.01216.60
7.3.190.0130.01216.44
7.3.180.0120.00916.29
7.3.170.0090.01216.36
7.3.160.0110.01116.31
7.3.130.0070.01114.38
7.3.120.0110.00714.78
7.3.110.0000.01914.93
7.3.100.0110.00414.88
7.3.90.0030.01314.95
7.3.80.0080.00815.11
7.3.70.0030.01014.62
7.3.60.0060.00914.80
7.3.50.0090.00914.99
7.3.40.0040.00814.92
7.3.30.0000.01414.77
7.3.20.0070.01016.78
7.3.10.0080.00616.45
7.3.00.0060.00616.62
7.2.330.0060.01216.62
7.2.320.0030.01316.71
7.2.310.0100.01016.65
7.2.300.0080.00816.66
7.2.290.0140.00316.44
7.2.260.0000.01214.66
7.2.250.0070.01115.10
7.2.240.0090.00614.93
7.2.230.0090.00615.08
7.2.220.0110.00715.00
7.2.210.0040.01115.23
7.2.200.0000.01215.04
7.2.190.0150.00414.81
7.2.180.0080.01114.81
7.2.170.0090.00615.11
7.2.160.0000.01414.94
7.2.150.0070.00716.91
7.2.140.0000.01516.70
7.2.130.0090.00616.89
7.2.120.0040.01116.93
7.2.110.0060.00916.86
7.2.100.0090.00616.78
7.2.90.0130.00316.95
7.2.80.0070.00717.00
7.2.70.0030.01016.85
7.2.60.0030.01316.66
7.2.50.0040.01116.90
7.2.40.0060.00616.87
7.2.30.0040.01116.64
7.2.20.0070.00716.77
7.2.10.0030.00817.03
7.2.00.0050.00918.12
7.1.330.0120.00015.98
7.1.320.0030.01515.80
7.1.310.0080.00315.56
7.1.300.0090.00615.46
7.1.290.0120.00015.59
7.1.280.0030.01115.74
7.1.270.0070.00415.84
7.1.260.0070.00715.81
7.1.250.0000.00815.60
7.1.240.0000.01015.84
7.1.230.0030.01015.66
7.1.220.0030.00915.77
7.1.210.0040.00815.64
7.1.200.0070.00515.68
7.1.190.0000.01015.85
7.1.180.0030.01015.70
7.1.170.0000.01415.79
7.1.160.0060.00615.80
7.1.150.0030.01015.69
7.1.140.0040.00415.79
7.1.130.0080.00415.77
7.1.120.0030.01015.87
7.1.110.0040.00715.63
7.1.100.0070.00816.84
7.1.90.0080.00415.63
7.1.80.0090.00015.84
7.1.70.0000.01116.38
7.1.60.0050.01517.55
7.1.50.0100.00816.44
7.1.40.0030.00715.84
7.1.30.0080.00415.78
7.1.20.0030.01015.75
7.1.10.0050.00515.59
7.1.00.0080.04019.12
7.0.330.0000.01415.27
7.0.320.0080.00315.48
7.0.310.0120.00415.36
7.0.300.0000.01415.25
7.0.290.0030.01215.36
7.0.280.0040.01115.46
7.0.270.0060.00915.46
7.0.260.0100.00015.32
7.0.250.0040.00815.59
7.0.240.0040.00715.27
7.0.230.0090.00615.41
7.0.220.0040.00815.52
7.0.210.0100.00415.41
7.0.200.0040.00615.93
7.0.190.0060.00915.27
7.0.180.0090.00315.40
7.0.170.0040.01415.28
7.0.160.0090.00315.30
7.0.150.0060.00315.22
7.0.140.0030.01415.53
7.0.130.0100.00715.30
7.0.120.0080.00315.44
7.0.110.0100.00315.12
7.0.100.0040.04217.76
7.0.90.0100.04517.73
7.0.80.0070.04217.57
7.0.70.0090.02017.60
7.0.60.0080.04517.61
7.0.50.0070.03817.90
7.0.40.0060.04316.71
7.0.30.0080.04316.70
7.0.20.0070.04516.73
7.0.10.0060.04316.65
7.0.00.0000.05016.76
5.6.400.0070.00714.07
5.6.390.0060.01013.93
5.6.380.0100.00714.05
5.6.370.0080.00414.40
5.6.360.0110.00014.19
5.6.350.0120.00614.30
5.6.340.0000.01414.25
5.6.330.0000.01114.31
5.6.320.0080.00814.11
5.6.310.0100.00314.26
5.6.300.0090.00614.09
5.6.290.0070.00713.83
5.6.280.0050.04017.46
5.6.270.0000.01414.23
5.6.260.0080.00414.24
5.6.250.0120.03317.38
5.6.240.0090.02817.26
5.6.230.0150.03817.41
5.6.220.0040.04717.32
5.6.210.0030.03717.40
5.6.200.0080.04117.50
5.6.190.0120.04217.68
5.6.180.0080.04017.71
5.6.170.0070.04017.49
5.6.160.0070.04617.76
5.6.150.0060.04317.63
5.6.140.0070.04717.53
5.6.130.0100.03317.63
5.6.120.0050.03017.53
5.6.110.0050.04117.48
5.6.100.0030.04517.59
5.6.90.0080.02817.59
5.6.80.0050.04717.23
5.6.70.0050.03717.12
5.6.60.0120.03317.19
5.6.50.0070.02417.18
5.6.40.0030.04517.16
5.6.30.0050.03417.11
5.6.20.0070.04317.20
5.6.10.0110.03517.22
5.6.00.0050.02817.10
5.5.380.0120.03717.22
5.5.370.0070.04017.19
5.5.360.0050.04917.14
5.5.350.0090.02717.09
5.5.340.0090.04117.35
5.5.330.0050.04917.52
5.5.320.0050.03217.37
5.5.310.0100.03917.46
5.5.300.0120.02317.54
5.5.290.0030.03217.30
5.5.280.0090.04417.34
5.5.270.0030.05017.60
5.5.260.0080.03117.53
5.5.250.0120.03517.37
5.5.240.0080.04316.98
5.5.230.0090.03816.91
5.5.220.0030.03017.16
5.5.210.0060.04117.09
5.5.200.0050.03017.20
5.5.190.0050.04217.20
5.5.180.0080.02916.96
5.5.170.0040.01114.03
5.5.160.0000.04517.00
5.5.150.0090.03817.08
5.5.140.0110.03816.98
5.5.130.0110.04017.05
5.5.120.0080.04117.13
5.5.110.0140.03517.03
5.5.100.0080.02717.03
5.5.90.0050.04116.92
5.5.80.0000.03117.07
5.5.70.0070.02917.11
5.5.60.0030.03816.99
5.5.50.0070.03717.03
5.5.40.0060.04116.91
5.5.30.0070.03016.97
5.5.20.0100.03616.98
5.5.10.0030.03516.86
5.5.00.0070.04016.83
5.4.450.0000.04715.12
5.4.440.0050.04015.18
5.4.430.0080.03715.06
5.4.420.0070.03715.14
5.4.410.0060.03815.00
5.4.400.0060.04314.92
5.4.390.0030.04014.89
5.4.380.0030.04214.82
5.4.370.0100.02814.80
5.4.360.0050.02314.88
5.4.350.0040.03915.09
5.4.340.0070.03814.82
5.4.330.0060.00310.75
5.4.320.0050.03214.95
5.4.310.0020.04014.94
5.4.300.0060.03014.95
5.4.290.0050.03314.84
5.4.280.0110.03314.92
5.4.270.0090.03914.82
5.4.260.0020.03014.90
5.4.250.0050.04114.98
5.4.240.0080.03314.96
5.4.230.0070.03314.96
5.4.220.0070.03214.76
5.4.210.0060.04014.90
5.4.200.0020.04315.00
5.4.190.0050.04014.88
5.4.180.0060.04214.99
5.4.170.0020.02514.93
5.4.160.0050.02714.75
5.4.150.0090.03714.76
5.4.140.0140.03013.58
5.4.130.0040.03713.58
5.4.120.0050.02513.65
5.4.110.0070.04013.59
5.4.100.0030.03613.55
5.4.90.0080.03913.57
5.4.80.0080.02713.54
5.4.70.0030.04013.59
5.4.60.0030.03513.51
5.4.50.0000.04413.48
5.4.40.0050.04113.65
5.4.30.0070.02613.54
5.4.20.0020.04313.56
5.4.10.0050.04013.48
5.4.00.0080.03413.34
5.3.290.0030.08314.68
5.3.280.0070.07014.45
5.3.270.0070.03714.59
5.3.260.0030.06014.61
5.3.250.0030.07714.46
5.3.240.0100.07314.47
5.3.230.0070.07314.59
5.3.220.0030.07014.55
5.3.210.0070.07314.40
5.3.200.0030.07714.39
5.3.190.0130.07014.53
5.3.180.0030.08014.50
5.3.170.0100.05314.57
5.3.160.0030.07314.50
5.3.150.0130.05714.56
5.3.140.0030.07714.44
5.3.130.0070.08014.41
5.3.120.0070.07714.51
5.3.110.0100.05714.56
5.3.100.0130.06713.87
5.3.90.0100.07014.03
5.3.80.0070.06713.79
5.3.70.0000.06714.00
5.3.60.0070.07013.99
5.3.50.0130.06313.93
5.3.40.0100.06713.89
5.3.30.0030.07013.86
5.3.20.0030.05313.64
5.3.10.0070.07313.61
5.3.00.0070.07713.59
5.2.170.0030.06011.09
5.2.160.0170.04311.10
5.2.150.0170.05010.95
5.2.140.0000.05711.17
5.2.130.0000.06011.04
5.2.120.0170.05011.04
5.2.110.0030.06311.08
5.2.100.0030.06011.14
5.2.90.0000.06710.93
5.2.80.0070.06311.02
5.2.70.0030.05011.08
5.2.60.0070.06011.07
5.2.50.0070.03711.07
5.2.40.0000.06710.94
5.2.30.0000.04010.99
5.2.20.0100.05310.93
5.2.10.0130.04710.85
5.2.00.0030.05710.73
5.1.60.0000.03310.04
5.1.50.0000.0579.98
5.1.40.0030.05310.00
5.1.30.0000.03010.41
5.1.20.0030.05010.40
5.1.10.0070.0539.94
5.1.00.0070.05310.05
5.0.50.0000.0508.55
5.0.40.0000.0478.42
5.0.30.0030.0338.20
5.0.20.0130.0278.20
5.0.10.0000.0408.25
5.0.00.0070.0608.20
4.4.90.0000.0378.20
4.4.80.0000.0378.20
4.4.70.0000.0338.20
4.4.60.0000.0378.20
4.4.50.0000.0438.20
4.4.40.0000.0478.20
4.4.30.0070.0308.20
4.4.20.0070.0338.20
4.4.10.0030.0238.20
4.4.00.0030.0378.20
4.3.110.0000.0378.20
4.3.100.0000.0338.20
4.3.90.0030.0338.20
4.3.80.0030.0508.20
4.3.70.0030.0208.20
4.3.60.0030.0338.20
4.3.50.0000.0238.20
4.3.40.0030.0508.20
4.3.30.0000.0208.20
4.3.20.0000.0378.20
4.3.10.0000.0408.20
4.3.00.0030.0308.20

preferences:
30.64 ms | 403 KiB | 5 Q