3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('blah' => 'bla'); $color = isset($options['color']) ?: ''; echo $color . '<br>'; $color2 = isset($options['color']) ? $options['color'] : ''; echo $color2 . '<br>'; $options['color'] = 'blue'; $color = isset($options['color']) ?: ''; echo $color . '<br>'; $color2 = isset($options['color']) ? $options['color'] : ''; echo $color2 . '<br>'; echo 'done';

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.70.0090.00618.30
8.3.60.0070.01018.33
8.3.50.0100.00822.11
8.3.40.0040.01118.84
8.3.30.0150.00320.35
8.3.20.0070.00718.74
8.3.10.0080.00021.08
8.3.00.0150.00019.66
8.2.180.0090.00616.50
8.2.170.0120.00322.96
8.2.160.0160.00320.24
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0080.00020.89
8.2.110.0000.01020.31
8.2.100.0040.00817.97
8.2.90.0000.00819.30
8.2.80.0040.00419.28
8.2.70.0030.00517.63
8.2.60.0030.00518.16
8.2.50.0000.00818.07
8.2.40.0030.00618.14
8.2.30.0030.00319.41
8.2.20.0040.00417.78
8.2.10.0030.00517.80
8.2.00.0000.00817.80
8.1.280.0080.01225.92
8.1.270.0030.01023.99
8.1.260.0000.00826.35
8.1.250.0110.00428.09
8.1.240.0090.00022.45
8.1.230.0040.00820.91
8.1.220.0000.00818.77
8.1.210.0050.00318.77
8.1.200.0030.00717.36
8.1.190.0020.00517.51
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0030.00318.95
8.1.150.0070.00618.64
8.1.140.0000.00717.36
8.1.130.0000.00617.89
8.1.120.0030.00317.36
8.1.110.0030.00617.43
8.1.100.0040.00417.38
8.1.90.0050.00217.49
8.1.80.0000.00817.36
8.1.70.0000.00717.39
8.1.60.0050.00317.63
8.1.50.0040.00417.48
8.1.40.0000.00717.50
8.1.30.0050.00317.66
8.1.20.0040.00417.64
8.1.10.0000.00817.54
8.1.00.0030.00617.52
8.0.300.0000.00919.88
8.0.290.0030.00317.18
8.0.280.0000.00718.43
8.0.270.0030.00317.27
8.0.260.0030.00316.70
8.0.250.0040.00416.99
8.0.240.0070.00016.96
8.0.230.0000.00717.01
8.0.220.0000.00816.88
8.0.210.0030.00616.88
8.0.200.0060.00016.86
8.0.190.0030.00517.02
8.0.180.0040.00416.93
8.0.170.0000.00816.95
8.0.160.0000.01016.84
8.0.150.0000.00816.84
8.0.140.0040.00316.83
8.0.130.0030.00313.30
8.0.120.0040.00416.95
8.0.110.0040.00416.78
8.0.100.0030.00516.85
8.0.90.0080.00016.75
8.0.80.0080.01116.86
8.0.70.0040.00416.77
8.0.60.0000.00716.80
8.0.50.0040.00416.95
8.0.30.0120.01017.15
8.0.20.0090.01217.43
8.0.10.0040.00417.05
8.0.00.0080.00816.84
7.4.330.0060.00016.75
7.4.320.0060.00016.46
7.4.300.0030.00316.59
7.4.290.0030.00316.48
7.4.280.0040.00416.45
7.4.270.0000.00816.59
7.4.260.0030.00313.20
7.4.250.0080.00016.61
7.4.240.0030.00316.65
7.4.230.0070.00016.53
7.4.220.0070.01016.49
7.4.210.0080.00916.50
7.4.200.0070.00016.61
7.4.190.0070.00016.41
7.4.160.0070.01416.66
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0130.01016.53
7.4.120.0100.00816.57
7.4.110.0090.00916.31
7.4.100.0120.00416.51
7.4.90.0060.01216.56
7.4.80.0110.00619.39
7.4.70.0060.01516.37
7.4.60.0110.00616.47
7.4.50.0070.00016.64
7.4.40.0070.00722.77
7.4.30.0090.00916.64
7.4.10.0070.01114.92
7.4.00.0040.00915.02
7.3.330.0000.00513.16
7.3.320.0050.00012.98
7.3.310.0070.00016.23
7.3.300.0040.00416.25
7.3.290.0040.01216.32
7.3.280.0100.00916.34
7.3.270.0100.00717.40
7.3.260.0090.00818.24
7.3.250.0050.01116.47
7.3.240.0070.01316.53
7.3.230.0100.00616.53
7.3.210.0050.01116.47
7.3.200.0130.00319.39
7.3.190.0140.00816.46
7.3.180.0060.00916.44
7.3.170.0090.00616.51
7.3.160.0100.00616.59
7.3.130.0060.01214.91
7.3.120.0070.00814.73
7.3.110.0050.01414.82
7.3.100.0080.00514.75
7.3.90.0100.00514.95
7.3.80.0030.00814.70
7.3.70.0040.01014.71
7.3.60.0050.01114.65
7.3.50.0060.00914.85
7.3.40.0040.00814.84
7.3.30.0070.00614.84
7.3.20.0070.00616.62
7.3.10.0080.00816.63
7.3.00.0070.00416.55
7.2.330.0060.01316.72
7.2.320.0130.01016.35
7.2.310.0110.00816.42
7.2.300.0120.00616.61
7.2.290.0120.00416.67
7.2.260.0060.00914.94
7.2.250.0160.00214.87
7.2.240.0100.00715.13
7.2.230.0080.00815.09
7.2.220.0090.00715.25
7.2.210.0030.01014.90
7.2.200.0050.00814.97
7.2.190.0090.00814.98
7.2.180.0040.01015.10
7.2.170.0050.00614.96
7.2.160.0020.01315.06
7.2.150.0110.00316.95
7.2.140.0110.00516.88
7.2.130.0040.00716.76
7.2.120.0100.00916.99
7.2.110.0030.01016.98
7.2.100.0100.00516.97
7.2.90.0070.00816.94
7.2.80.0090.00717.02
7.2.70.0070.00717.06
7.2.60.0120.00316.84
7.2.50.0060.00616.91
7.2.40.0030.01216.96
7.2.30.0070.00516.99
7.2.20.0050.01116.89
7.2.10.0060.00717.01
7.2.00.0060.01117.71
7.1.330.0060.00715.85
7.1.320.0060.00915.78
7.1.310.0020.01115.65
7.1.300.0050.00815.80
7.1.290.0050.00515.83
7.1.280.0050.00815.77
7.1.270.0090.00515.68
7.1.260.0030.01115.84
7.1.250.0060.00615.83
7.1.240.0090.00515.89
7.1.230.0100.00515.89
7.1.220.0040.01315.76
7.1.210.0080.00815.81
7.1.200.0060.00915.90
7.1.190.0070.00715.89
7.1.180.0050.00615.72
7.1.170.0080.00815.92
7.1.160.0070.00715.85
7.1.150.0060.00815.78
7.1.140.0080.00615.90
7.1.130.0050.01015.76
7.1.120.0040.00915.88
7.1.110.0060.00515.94
7.1.100.0080.00216.78
7.1.90.0060.00615.97
7.1.80.0030.01115.84
7.1.70.0040.00516.31
7.1.60.0070.00516.29
7.1.50.0070.00516.16
7.1.40.0030.00916.02
7.1.30.0060.00616.06
7.1.20.0060.00816.22
7.1.10.0050.00716.09
7.1.00.0060.00716.28
7.0.330.0050.00815.48
7.0.320.0050.00915.26
7.0.310.0070.00415.44
7.0.300.0050.01115.24
7.0.290.0060.00515.43
7.0.280.0040.00715.39
7.0.270.0020.01115.42
7.0.260.0030.00915.46
7.0.250.0060.00415.27
7.0.240.0060.00815.48
7.0.230.0030.00715.56
7.0.220.0030.01215.48
7.0.210.0050.00815.40
7.0.200.0080.00415.93
7.0.190.0050.00615.75
7.0.180.0080.00515.85
7.0.170.0060.00615.55
7.0.160.0090.00515.70
7.0.150.0020.00815.81
7.0.140.0070.00715.71
7.0.130.0040.00715.72
7.0.120.0050.00615.87
7.0.110.0040.00715.67
7.0.100.0040.00815.89
7.0.90.0020.00915.71
7.0.80.0040.00815.64
7.0.70.0050.00615.73
7.0.60.0100.00515.67
7.0.50.0010.01015.80
7.0.40.0050.00613.90
7.0.30.0060.00613.84
7.0.20.0050.00813.71
7.0.10.0040.00613.87
7.0.00.0020.01013.83
5.6.400.0090.00514.55
5.6.390.0070.01114.67
5.6.380.0020.00714.57
5.6.370.0000.01414.50
5.6.360.0050.00814.55
5.6.350.0050.00714.51
5.6.340.0100.00514.62
5.6.330.0090.00814.38
5.6.320.0040.00914.46
5.6.310.0040.01014.55
5.6.300.0060.03416.51
5.6.290.0080.01916.50
5.6.280.0040.02016.64
5.6.270.0010.02316.70
5.6.260.0080.01516.60
5.6.250.0030.02616.70
5.6.240.0080.02616.62
5.6.230.0050.02116.71
5.6.220.0020.01916.56
5.6.210.0090.02416.39
5.6.200.0060.01816.66
5.6.190.0100.01816.49
5.6.180.0110.01316.52
5.6.170.0080.02916.72
5.6.160.0080.02016.64
5.6.150.0030.02116.64
5.6.140.0030.02316.66
5.6.130.0040.02116.54
5.6.120.0050.01916.60
5.6.110.0080.01916.56
5.6.100.0060.02316.50
5.6.90.0110.02016.59
5.6.80.0050.02116.44
5.6.70.0050.01716.27
5.6.60.0010.02216.39
5.6.50.0040.02016.24
5.6.40.0050.01916.47
5.6.30.0060.02216.42
5.6.20.0050.01716.35
5.6.10.0050.01716.26
5.6.00.0040.02116.15
5.5.380.0080.01615.59
5.5.370.0070.01715.39
5.5.360.0060.02315.60
5.5.350.0040.02315.27
5.5.340.0060.02015.52
5.5.330.0070.01515.77
5.5.320.0060.01715.67
5.5.310.0060.02715.65
5.5.300.0040.02315.53
5.5.290.0070.01515.74
5.5.280.0090.01415.58
5.5.270.0090.01515.59
5.5.260.0060.02015.64
5.5.250.0030.01915.47
5.5.240.0050.01815.46
5.5.230.0060.01915.46
5.5.220.0050.02015.12
5.5.210.0120.02415.28
5.5.200.0030.02115.34
5.5.190.0070.01615.27
5.5.180.0040.02015.31
5.5.170.0040.00914.35
5.5.160.0020.02015.36
5.5.150.0070.01515.34
5.5.140.0080.01715.30
5.5.130.0080.01415.44
5.5.120.0060.01815.29
5.5.110.0050.01815.47
5.5.100.0040.01815.41
5.5.90.0030.01715.26
5.5.80.0060.01715.35
5.5.70.0060.01915.44
5.5.60.0080.01715.39
5.5.50.0040.01915.16
5.5.40.0050.02015.38
5.5.30.0070.01715.42
5.5.20.0040.01915.34
5.5.10.0060.02015.22
5.5.00.0050.02015.40
5.4.450.0050.02214.50
5.4.440.0060.01814.52
5.4.430.0010.02314.60
5.4.420.0060.01614.47
5.4.410.0060.01814.37
5.4.400.0030.01614.35
5.4.390.0060.01414.40
5.4.380.0040.01914.35
5.4.370.0010.02214.38
5.4.360.0060.02214.39
5.4.350.0040.01914.47
5.4.340.0030.01914.40
5.4.330.0040.00912.13
5.4.320.0060.01714.41
5.4.310.0070.02114.30
5.4.300.0020.02214.31
5.4.290.0030.01714.38
5.4.280.0030.01914.37
5.4.270.0040.01814.38
5.4.260.0030.02114.39
5.4.250.0050.01614.26
5.4.240.0040.01614.37
5.4.230.0030.01714.34
5.4.220.0030.02014.42
5.4.210.0100.01414.25
5.4.200.0050.02114.34
5.4.190.0040.01614.37
5.4.180.0040.01714.42
5.4.170.0030.01814.28
5.4.160.0120.01314.41
5.4.150.0060.02114.37
5.4.140.0040.01413.49
5.4.130.0060.01513.63
5.4.120.0010.02113.54
5.4.110.0050.01613.60
5.4.100.0030.01713.57
5.4.90.0050.01613.56
5.4.80.0050.01713.60
5.4.70.0060.01713.49
5.4.60.0020.01913.49
5.4.50.0090.02013.55
5.4.40.0070.01413.49
5.4.30.0050.01813.51
5.4.20.0050.03113.64
5.4.10.0040.01913.43
5.4.00.0070.02013.25
5.3.290.0050.01312.77
5.3.280.0020.01712.76
5.3.270.0080.01512.74
5.3.260.0080.01912.74
5.3.250.0050.01312.70
5.3.240.0070.01412.69
5.3.230.0050.02212.79
5.3.220.0060.01312.69
5.3.210.0080.01312.77
5.3.200.0040.01612.72
5.3.190.0050.01612.76
5.3.180.0020.02812.75
5.3.170.0010.02212.80
5.3.160.0080.01412.72
5.3.150.0050.01612.73
5.3.140.0020.02112.73
5.3.130.0080.01212.71
5.3.120.0030.01912.80
5.3.110.0040.01512.80
5.3.100.0060.01612.78
5.3.90.0050.01712.73
5.3.80.0040.01612.67
5.3.70.0040.01512.67
5.3.60.0040.01712.67
5.3.50.0050.01812.69
5.3.40.0050.01512.67
5.3.30.0060.01512.67
5.3.20.0070.01512.67
5.3.10.0040.01612.67
5.3.00.0010.01812.67
5.2.170.0030.02914.59
5.2.160.0000.03414.59
5.2.150.0280.02114.59
5.2.140.0070.02814.59
5.2.130.0060.02614.59
5.2.120.0000.03414.59
5.2.110.0040.02814.59
5.2.100.0070.03914.59
5.2.90.0040.03314.59
5.2.80.0040.03514.59
5.2.70.0000.03714.59
5.2.60.0090.03214.59
5.2.50.0030.03214.59
5.2.40.0030.03414.59
5.2.30.0070.02614.59
5.2.20.0030.03114.59
5.2.10.0030.03114.59
5.2.00.0100.02914.59
5.1.60.0030.02714.59
5.1.50.0110.01814.59
5.1.40.0130.04214.59
5.1.30.0030.03314.59
5.1.20.0030.04414.59
5.1.10.0000.03114.59
5.1.00.0000.03014.59
5.0.50.0060.01914.59
5.0.40.0030.01914.59
5.0.30.0040.04614.59
5.0.20.0000.02614.59
5.0.10.0030.02414.59
5.0.00.0070.03614.59
4.4.90.0000.02514.59
4.4.80.0120.02714.59
4.4.70.0040.02014.59
4.4.60.0000.01814.59
4.4.50.0040.01814.59
4.4.40.0000.04214.59
4.4.30.0060.01314.59
4.4.20.0000.02014.59
4.4.10.0030.01814.59
4.4.00.0030.02314.59
4.3.110.0000.04214.59
4.3.100.0030.02014.59
4.3.90.0000.01814.59
4.3.80.0000.02614.59
4.3.70.0040.01814.59
4.3.60.0100.00814.59
4.3.50.0000.02314.59
4.3.40.0060.02114.59
4.3.30.0000.01814.59
4.3.20.0000.02314.59
4.3.10.0000.01714.59
4.3.00.0000.02114.59

preferences:
98.57 ms | 401 KiB | 5 Q