3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['b' => 'monkey']; $b = isset($a['b']) ? $a['b'] : 'rabbit';

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.120.0110.01120.73
8.4.110.0060.00320.44
8.4.100.0170.00318.65
8.4.90.0120.00518.53
8.4.80.0050.00418.41
8.4.70.0040.00419.69
8.4.60.0030.00518.79
8.4.50.0090.00617.75
8.4.40.0040.00417.68
8.4.30.0130.00718.65
8.4.20.0140.00717.65
8.4.10.0040.00419.27
8.3.250.0030.00519.01
8.3.240.0080.01016.50
8.3.230.0130.00516.74
8.3.220.0070.01018.72
8.3.210.0100.00816.41
8.3.200.0040.00416.39
8.3.190.0090.00916.95
8.3.180.0100.00816.65
8.3.170.0110.00418.85
8.3.160.0110.00718.41
8.3.150.0030.00520.70
8.3.140.0040.01117.11
8.3.130.0040.00418.23
8.3.120.0090.00620.49
8.3.110.0000.00920.94
8.3.100.0040.00424.06
8.3.90.0030.01026.77
8.3.80.0030.00618.30
8.3.70.0160.00316.38
8.3.60.0120.00616.38
8.3.50.0140.00716.62
8.3.40.0000.01820.26
8.3.30.0030.01019.07
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0080.01120.30
8.2.280.0060.00318.38
8.2.270.0030.00617.13
8.2.260.0090.00619.97
8.2.250.0040.00418.31
8.2.240.0030.00619.10
8.2.230.0030.00722.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0090.00316.88
8.2.190.0140.00316.63
8.2.180.0030.01216.63
8.2.170.0110.00318.79
8.2.160.0130.00022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.00
8.2.110.0150.00721.37
8.2.100.0160.00619.65
8.2.90.0110.00619.74
8.2.80.0150.00819.48
8.2.70.0080.01419.49
8.2.60.0140.00319.51
8.2.50.0060.01019.52
8.2.40.0090.01219.54
8.2.30.0130.01019.57
8.2.20.0110.00919.63
8.2.10.0120.00519.64
8.2.00.0130.01019.56
8.1.330.0110.00821.67
8.1.320.0140.00816.27
8.1.310.0030.01418.36
8.1.300.0060.01317.84
8.1.290.0090.00318.88
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0140.00719.41
8.1.230.0050.00919.39
8.1.220.0090.00519.43
8.1.210.0160.00520.72
8.1.200.0080.00619.36
8.1.190.0090.00919.32
8.1.180.0090.00619.28
8.1.170.0090.00519.40
8.1.160.0030.00719.47
8.1.150.0060.00519.59
8.1.140.0090.00620.18
8.1.130.0100.01219.40
8.1.120.0060.00819.39
8.1.110.0100.00519.29
8.1.100.0050.00919.36
8.1.90.0080.00720.21
8.1.80.0050.00819.39
8.1.70.0120.00519.68
8.1.60.0050.00519.48
8.1.50.0090.00119.40
8.1.40.0050.00519.71
8.1.30.0050.00519.50
8.1.20.0080.00319.66
8.1.10.0050.00519.53
8.1.00.0100.00519.64
8.0.300.0080.00518.66
8.0.290.0080.00418.73
8.0.280.0040.00618.59
8.0.270.0070.00218.55
8.0.260.0060.00318.69
8.0.250.0070.00418.64
8.0.240.0080.00518.80
8.0.230.0070.00219.28
8.0.220.0070.00218.72
8.0.210.0050.00618.63
8.0.200.0090.00418.66
8.0.190.0060.00418.75
8.0.180.0080.00318.72
8.0.170.0050.00418.67
8.0.160.0050.00418.77
8.0.150.0060.00518.63
8.0.140.0060.00418.65
8.0.130.0100.00518.62
8.0.120.0100.00518.68
8.0.110.0080.00518.76
8.0.100.0080.00718.55
8.0.90.0090.00318.55
8.0.80.0070.01418.64
8.0.70.0100.00518.69
8.0.60.0050.01018.71
8.0.50.0110.00418.60
8.0.30.0090.00618.67
8.0.20.0070.01018.86
8.0.10.0090.00618.90

preferences:
48.04 ms | 403 KiB | 5 Q