3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'bar'; if($foo['foo']){ echo 'true'; }else{ echo 'false'; }

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.0060.00319.96
8.3.140.0060.00316.59
8.3.130.0130.00318.21
8.3.120.0030.00620.83
8.3.110.0090.00020.94
8.3.100.0130.00624.06
8.3.90.0140.00016.91
8.3.80.0060.00316.50
8.3.70.0030.01016.58
8.3.60.0040.01918.55
8.3.50.0100.00523.50
8.3.40.0140.00318.76
8.3.30.0000.01418.59
8.3.20.0040.00420.93
8.3.10.0080.00021.80
8.3.00.0040.00421.65
8.2.250.0090.00016.70
8.2.240.0100.01016.99
8.2.230.0040.00422.58
8.2.220.0160.00037.54
8.2.210.0070.00326.77
8.2.200.0050.00516.63
8.2.190.0100.00316.63
8.2.180.0040.01418.30
8.2.170.0090.01222.96
8.2.160.0150.00321.02
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00720.48
8.2.110.0070.00321.12
8.2.100.0090.00317.72
8.2.90.0060.00319.27
8.2.80.0090.00017.97
8.2.70.0060.00317.75
8.2.60.0030.00518.05
8.2.50.0000.00818.10
8.2.40.0050.00318.16
8.2.30.0040.00419.37
8.2.20.0000.00718.05
8.2.10.0000.00719.17
8.2.00.0000.00719.11
8.1.300.0060.00318.44
8.1.290.0060.00330.84
8.1.280.0030.01225.92
8.1.270.0090.00023.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.29
8.1.230.0090.00317.45
8.1.220.0030.00517.74
8.1.210.0090.00018.77
8.1.200.0100.00017.35
8.1.190.0040.00419.13
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0040.00418.81
8.1.150.0030.00618.76
8.1.140.0070.00020.74
8.1.130.0030.00320.18
8.1.120.0000.00717.42
8.1.110.0040.00417.39
8.1.100.0060.00317.41
8.1.90.0000.00717.38
8.1.80.0000.00717.42
8.1.70.0030.00517.45
8.1.60.0080.00017.53
8.1.50.0050.00317.55
8.1.40.0080.00017.48
8.1.30.0040.00417.69
8.1.20.0040.00417.64
8.1.10.0040.00417.48
8.1.00.0000.00717.51
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.37
8.0.270.0000.00717.92
8.0.260.0030.00319.94
8.0.250.0030.00316.91
8.0.240.0030.00316.84
8.0.230.0030.00316.80
8.0.220.0030.00316.78
8.0.210.0030.00316.90
8.0.200.0000.00716.97
8.0.190.0030.00316.82
8.0.180.0000.00916.79
8.0.170.0030.00716.81
8.0.160.0040.00416.77
8.0.150.0030.00316.83
8.0.140.0000.00716.85
8.0.130.0000.00513.32
8.0.120.0040.00416.85
8.0.110.0040.00416.84
8.0.100.0040.00416.84
8.0.90.0060.00316.92
8.0.80.0050.00916.86
8.0.70.0050.00316.91
8.0.60.0040.00416.73
8.0.50.0040.00416.89
8.0.30.0120.00616.83
8.0.20.0120.00916.93
8.0.10.0030.01516.92
8.0.00.0160.00416.73
7.4.330.0000.00516.84
7.4.320.0000.00616.54
7.4.300.0070.00016.44
7.4.290.0000.00716.52
7.4.280.0000.00716.58
7.4.270.0040.00416.37
7.4.260.0000.00513.27
7.4.250.0080.00016.54
7.4.240.0000.00816.49
7.4.230.0000.00716.33
7.4.220.0030.00316.34
7.4.210.0110.00516.48
7.4.200.0000.00716.34
7.4.160.0110.00516.53
7.4.150.0140.00316.63
7.4.140.0190.01216.36
7.4.130.0100.00916.43
7.4.120.0110.00816.42
7.4.110.0070.01116.25
7.4.100.0100.00916.48
7.4.90.0120.01016.38
7.4.80.0090.01017.14
7.4.70.0100.00816.38
7.4.60.0110.00916.46
7.4.50.0130.00516.41
7.4.40.0110.00716.42
7.4.30.0100.00916.42
7.4.20.0120.00916.40
7.4.10.0080.01116.39
7.4.00.0110.01016.43
7.3.330.0030.00316.06
7.3.320.0000.00513.09
7.3.310.0030.00316.08
7.3.300.0070.00016.15
7.3.290.0050.01116.31
7.3.280.0120.00416.25
7.3.270.0050.01116.14
7.3.260.0130.00616.21
7.3.250.0080.01016.36
7.3.240.0130.00816.43
7.3.230.0100.00816.31
7.3.220.0150.00316.27
7.3.210.0070.01116.30
7.3.200.0080.01016.29
7.3.190.0080.01116.25
7.3.180.0090.01016.38
7.3.170.0120.00616.24
7.3.160.0090.00816.29
7.3.150.0110.01116.26
7.3.140.0090.01216.24
7.3.130.0130.00716.28
7.3.120.0110.00916.37
7.3.110.0120.00816.22
7.3.100.0120.00916.27
7.3.90.0130.00716.38
7.3.80.0110.00716.36
7.3.70.0110.00716.28
7.3.60.0110.00716.32
7.3.50.0090.00916.30
7.3.40.0140.00716.25
7.3.30.0120.00916.26
7.3.20.0160.01016.26
7.3.10.0100.01116.31
7.3.00.0190.00916.26
7.2.340.0120.01116.33
7.2.330.0100.01016.47
7.2.320.0110.00816.31
7.2.310.0100.01216.47
7.2.300.0130.00816.39
7.2.290.0110.00816.28
7.2.280.0050.01416.47
7.2.270.0120.00916.42
7.2.260.0110.00916.38
7.2.250.0070.01316.25
7.2.240.0110.00916.42
7.2.230.0110.01216.32
7.2.220.0100.01316.38
7.2.210.0120.00916.31
7.2.200.0120.01016.34
7.2.190.0110.01116.41
7.2.180.0150.00916.29
7.2.170.0070.01416.40
7.2.160.0120.00916.29
7.2.150.0150.00716.46
7.2.140.0120.01216.48
7.2.130.0140.00816.47
7.2.120.0120.01116.41
7.2.110.0140.01016.53
7.2.100.0180.00816.45
7.2.90.0150.00716.50
7.2.80.0250.00816.40
7.2.70.0150.01216.43
7.2.60.0220.00916.44
7.2.50.0120.01116.46
7.2.40.0150.00816.42
7.2.30.0140.00716.38
7.2.20.0120.01116.36
7.2.10.0120.00916.42
7.2.00.0150.01216.50
7.1.330.0170.00815.49
7.1.320.0150.01215.54
7.1.310.0140.00715.49
7.1.300.0220.00815.52
7.1.290.0640.00815.57
7.1.280.0090.01415.63
7.1.270.0170.00715.48
7.1.260.0190.00315.48
7.1.250.0120.01215.39
7.1.240.0170.00615.39
7.1.230.0150.00815.45
7.1.220.0630.01015.44
7.1.210.0190.00315.48
7.1.200.0120.01215.54
7.1.190.0140.01415.41
7.1.180.0260.00315.40
7.1.170.0200.00515.39
7.1.160.0170.00815.48
7.1.150.0330.00715.39
7.1.140.0150.00915.47
7.1.130.0200.00315.45
7.1.120.0170.00615.46
7.1.110.0220.00015.35
7.1.100.0150.00815.42
7.1.90.0160.00715.41
7.1.80.0760.00015.32
7.1.70.0190.00715.22
7.1.60.0050.01915.45
7.1.50.0100.01415.39
7.1.40.0220.00015.42
7.1.30.0150.01115.42
7.1.20.0700.01215.36
7.1.10.0230.00015.37
7.1.00.0180.00715.28
7.0.330.0180.00915.04
7.0.320.0140.00914.98
7.0.310.0130.01015.02
7.0.300.0200.00315.00
7.0.290.0150.00614.96
7.0.280.0160.01015.14
7.0.270.0210.01015.02
7.0.260.0140.01115.15
7.0.250.0150.00615.17
7.0.240.0180.00415.32
7.0.230.0170.00415.34
7.0.220.0140.00915.21
7.0.210.0070.01515.19
7.0.200.0200.00315.13
7.0.190.0140.00815.07
7.0.180.0190.00315.23
7.0.170.0170.00615.32
7.0.160.0160.00615.12
7.0.150.0120.01215.22
7.0.140.0110.01115.14
7.0.130.0180.00915.16
7.0.120.0110.01115.23
7.0.110.0210.00015.13
7.0.100.0130.01015.21
7.0.90.0190.00415.00
7.0.80.0150.00715.04
7.0.70.0150.00714.98
7.0.60.0140.01115.06
7.0.50.0110.01014.95
7.0.40.0130.01015.12
7.0.30.0150.00715.12
7.0.20.0180.01415.04
7.0.10.0200.01015.09
7.0.00.0190.00815.07
5.6.400.0070.01515.72
5.6.390.0160.00715.75
5.6.380.0190.00315.88
5.6.370.0230.00315.80
5.6.360.0140.01415.86
5.6.350.0140.00815.71
5.6.340.0170.00615.89
5.6.330.0140.00915.75
5.6.320.0190.00915.88
5.6.310.0220.00415.84
5.6.300.0150.01215.69
5.6.290.0190.00815.80
5.6.280.0160.00915.75
5.6.270.0100.01015.84
5.6.260.0220.00415.75
5.6.250.0110.00515.63
5.6.240.0170.00715.86
5.6.230.0150.01015.87
5.6.220.0120.01215.86
5.6.210.0120.01215.86
5.6.200.0180.00816.01
5.6.190.0210.00916.01
5.6.180.0200.00715.79
5.6.170.0150.01515.86
5.6.160.0240.00715.97
5.6.150.0110.01516.12
5.6.140.0290.00016.00
5.6.130.0160.00716.05
5.6.120.0170.00615.95
5.6.110.0220.00415.97
5.6.100.0120.01315.88
5.6.90.0210.00715.77
5.6.80.0180.00515.75
5.6.70.0060.01715.85
5.6.60.0150.01115.86
5.6.50.0160.00815.80
5.6.40.0170.00815.72
5.6.30.0100.01315.79
5.6.20.0170.00715.75
5.6.10.0170.01415.71
5.6.00.0110.01115.66
5.5.380.0190.01015.86
5.5.370.0220.00015.80
5.5.360.0120.01215.75
5.5.350.0180.00615.59
5.5.340.0100.01415.75
5.5.330.0170.01415.48
5.5.320.0200.01115.80
5.5.310.0210.00015.63
5.5.300.0150.01215.68
5.5.290.0190.00815.58
5.5.280.0230.00015.59
5.5.270.0170.00915.62
5.5.260.0190.00515.60
5.5.250.0200.01015.91
5.5.240.0200.00515.89
5.5.230.0190.00515.88
5.5.220.0200.00415.70
5.5.210.0240.00315.91
5.5.200.0150.00615.52
5.5.190.0190.00315.52
5.5.180.0200.00715.66
5.5.170.0160.00915.63
5.5.160.0160.00815.66
5.5.150.0110.01415.59
5.5.140.0140.00715.45
5.5.130.0170.00715.50
5.5.120.0230.00015.40
5.5.110.0150.00915.50
5.5.100.0170.00615.63
5.5.90.0090.01315.74
5.5.80.0100.01015.64
5.5.70.0170.01115.82
5.5.60.0140.00815.76
5.5.50.0150.00715.77
5.5.40.0210.01015.68
5.5.30.0240.00315.83
5.5.20.0110.01615.71
5.5.10.0150.01515.61
5.5.00.0140.01415.60
5.4.450.0180.00412.50
5.4.440.0110.00812.57
5.4.430.0090.00912.55
5.4.420.0130.00312.49
5.4.410.0100.01112.49
5.4.400.0070.00612.54
5.4.390.0150.00612.49
5.4.380.0150.00312.49
5.4.370.0150.00312.44
5.4.360.0140.00312.50
5.4.350.0200.00012.48
5.4.340.0120.00912.49
5.4.330.0140.00412.47
5.4.320.0070.01412.55
5.4.310.0130.01012.55
5.4.300.0140.00612.54
5.4.290.0160.00312.56
5.4.280.0110.00612.54
5.4.270.0160.00312.59
5.4.260.0130.00512.62
5.4.250.0120.00512.54
5.4.240.0100.00612.50
5.4.230.0140.01012.34
5.4.220.0170.00012.29
5.4.210.0130.00512.33
5.4.200.0160.00312.30
5.4.190.0160.00312.34
5.4.180.0160.00412.26
5.4.170.0150.00412.45
5.4.160.0040.01312.45
5.4.150.0120.00812.41
5.4.140.0140.01212.51
5.4.130.0120.00412.51
5.4.120.0090.01012.43
5.4.110.0040.01212.62
5.4.100.0160.00012.46
5.4.90.0080.00712.41
5.4.80.0100.00512.55
5.4.70.0060.00912.57
5.4.60.0090.00612.50
5.4.50.0090.00612.45
5.4.40.0080.00812.42
5.4.30.0100.00712.48
5.4.20.0100.00612.62
5.4.10.0040.01212.52
5.4.00.0060.01212.36
5.3.290.0110.00612.92
5.3.280.0170.00012.97
5.3.270.0150.00613.13
5.3.260.0190.00012.90
5.3.250.0130.00513.09
5.3.240.0180.00312.82
5.3.230.0100.00812.99
5.3.220.0180.00013.05
5.3.210.0140.00312.71
5.3.200.0140.00412.95
5.3.190.0110.00512.84
5.3.180.0110.00513.10
5.3.170.0060.01112.92
5.3.160.0100.00713.09
5.3.150.0080.00513.09
5.3.140.0070.01012.86
5.3.130.0140.00312.91
5.3.120.0190.00012.96
5.3.110.0150.00312.88
5.3.100.0140.00312.97
5.3.90.0060.01112.89
5.3.80.0150.00312.71
5.3.70.0130.00312.59
5.3.60.0110.01112.70
5.3.50.0180.00012.75
5.3.40.0190.00012.82
5.3.30.0190.00012.79
5.3.20.0110.00812.77
5.3.10.0100.00712.51
5.3.00.0170.00312.51
5.2.170.0110.00311.93
5.2.160.0070.00712.04
5.2.150.0080.01011.93
5.2.140.0150.00011.96
5.2.130.0040.01111.87
5.2.120.0140.00411.95
5.2.110.0130.00611.98
5.2.100.0100.00311.92
5.2.90.0130.00011.98
5.2.80.0040.01811.75
5.2.70.0060.00911.86
5.2.60.0060.00811.74
5.2.50.0090.00611.81
5.2.40.0100.00711.83
5.2.30.0090.00611.81
5.2.20.0140.00411.71
5.2.10.0080.00811.91
5.2.00.0070.01011.62
5.1.60.0080.00811.09
5.1.50.0120.00611.07
5.1.40.0140.00010.98
5.1.30.0190.00311.11
5.1.20.0090.00311.08
5.1.10.0040.00911.16
5.1.00.0120.00311.00
5.0.50.0110.00310.26
5.0.40.0090.0039.84
5.0.30.0110.0009.71
5.0.20.0110.0039.77
5.0.10.0050.0059.67
5.0.00.0070.0049.60
4.4.90.0040.0048.90
4.4.80.0050.0028.90
4.4.70.0090.0008.90
4.4.60.0050.0038.90
4.4.50.0050.0058.90
4.4.40.0070.0038.90
4.4.30.0080.0008.90
4.4.20.0080.0008.90
4.4.10.0060.0038.90
4.4.00.0080.0008.90
4.3.110.0030.0048.90
4.3.100.0000.0078.90
4.3.90.0000.0078.90
4.3.80.0000.0088.90
4.3.70.0050.0058.90
4.3.60.0060.0028.90
4.3.50.0090.0038.90
4.3.40.0080.0038.90
4.3.30.0030.0058.90
4.3.20.0020.0048.90
4.3.10.0050.0058.90
4.3.00.0050.0028.90

preferences:
49.55 ms | 403 KiB | 5 Q