3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hi = [ 'hello' => 'hola', ]; if ($hi['sup'] !== false) { echo 'SUP!'; }

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.120.0030.00620.46
8.3.110.0080.00016.63
8.3.100.0030.00624.06
8.3.90.0060.01026.77
8.3.80.0100.00018.43
8.3.70.0030.01318.18
8.3.60.0090.00616.50
8.3.50.0070.01617.34
8.3.40.0180.00018.68
8.3.30.0140.00318.84
8.3.20.0070.00020.29
8.3.10.0040.00421.92
8.3.00.0070.00023.70
8.2.240.0040.00419.02
8.2.230.0060.00320.94
8.2.220.0040.00437.54
8.2.210.0070.01126.77
8.2.200.0030.00716.50
8.2.190.0140.00718.31
8.2.180.0160.00316.84
8.2.170.0060.01022.96
8.2.160.0080.00520.87
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0060.00319.66
8.2.110.0030.00721.13
8.2.100.0100.00317.97
8.2.90.0050.00318.95
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0000.00817.93
8.2.50.0000.00718.10
8.2.40.0000.00820.48
8.2.30.0040.00419.12
8.2.20.0030.00517.91
8.2.10.0040.00417.86
8.2.00.0000.01017.89
8.1.300.0140.00418.29
8.1.290.0030.00730.84
8.1.280.0140.00025.92
8.1.270.0080.00020.48
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00321.29
8.1.230.0030.00917.89
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0040.00418.80
8.1.150.0080.00020.07
8.1.140.0040.00417.38
8.1.130.0060.00318.96
8.1.120.0050.00217.33
8.1.110.0030.00717.42
8.1.100.0040.00417.40
8.1.90.0050.00217.34
8.1.80.0000.00817.42
8.1.70.0040.00417.43
8.1.60.0060.00317.48
8.1.50.0000.01117.44
8.1.40.0050.00217.37
8.1.30.0040.00417.41
8.1.20.0000.00717.42
8.1.10.0070.00017.50
8.1.00.0000.00717.50
8.0.300.0020.00518.77
8.0.290.0070.00016.75
8.0.280.0000.00718.37
8.0.270.0030.00317.24
8.0.260.0060.00018.45
8.0.250.0000.00717.00
8.0.240.0040.00416.84
8.0.230.0070.00016.86
8.0.220.0070.00016.90
8.0.210.0000.00716.86
8.0.200.0000.00616.93
8.0.190.0000.00816.93
8.0.180.0070.00016.80
8.0.170.0070.00016.92
8.0.160.0040.00416.88
8.0.150.0040.00416.86
8.0.140.0000.00716.73
8.0.130.0000.00513.30
8.0.120.0020.00516.86
8.0.110.0040.00416.68
8.0.100.0030.00516.70
8.0.90.0050.00316.79
8.0.80.0080.00816.88
8.0.70.0030.00516.79
8.0.60.0000.00716.78
8.0.50.0000.00816.73
8.0.30.0110.00917.23
8.0.20.0110.00717.40
8.0.10.0040.00416.92
8.0.00.0110.00816.84
7.4.330.0020.00215.55
7.4.320.0000.00716.57
7.4.300.0070.00016.57
7.4.290.0040.00416.54
7.4.280.0030.00516.50
7.4.270.0030.00316.44
7.4.260.0000.00716.47
7.4.250.0000.00716.56
7.4.240.0030.00316.60
7.4.230.0040.00416.69
7.4.220.0100.00716.39
7.4.210.0080.01216.69
7.4.200.0080.00016.38
7.4.160.0150.00316.54
7.4.150.0070.01017.40
7.4.140.0090.00917.86
7.4.130.0130.00916.68
7.4.120.0100.00716.54
7.4.110.0160.00316.58
7.4.100.0100.00716.51
7.4.90.0030.01416.50
7.4.80.0070.01019.39
7.4.70.0090.00916.48
7.4.60.0090.01016.58
7.4.50.0060.00916.51
7.4.40.0100.00716.47
7.4.30.0100.00616.55
7.4.00.0060.00914.96
7.3.330.0000.00813.12
7.3.320.0030.00313.29
7.3.310.0060.00316.46
7.3.300.0070.00016.34
7.3.290.0180.00616.30
7.3.280.0080.00816.27
7.3.270.0100.00717.40
7.3.260.0130.00716.42
7.3.250.0110.00816.30
7.3.240.0110.00916.37
7.3.230.0090.00816.32
7.3.210.0130.00316.43
7.3.200.0090.00916.61
7.3.190.0120.00816.28
7.3.180.0100.00716.50
7.3.170.0060.01116.43
7.3.160.0060.00916.38
7.3.120.0060.01214.98
7.3.110.0090.00914.59
7.3.100.0110.00314.66
7.3.90.0120.00314.57
7.3.80.0070.00414.87
7.3.70.0100.00314.72
7.3.60.0040.01114.56
7.3.50.0030.01014.71
7.3.40.0000.00914.70
7.3.30.0040.00414.80
7.3.20.0030.00816.30
7.3.10.0030.00916.36
7.3.00.0030.00616.57
7.2.330.0150.00316.60
7.2.320.0100.00716.47
7.2.310.0100.00716.59
7.2.300.0060.01116.67
7.2.290.0040.01816.71
7.2.250.0060.01014.92
7.2.240.0070.01415.22
7.2.230.0130.00314.86
7.2.220.0030.01014.86
7.2.210.0030.01415.09
7.2.200.0040.01514.77
7.2.190.0070.01014.95
7.2.180.0070.00714.93
7.2.170.0060.00614.75
7.2.60.0060.00916.93
7.1.330.0030.01015.77
7.1.320.0100.00015.93
7.1.310.0000.01115.82
7.1.300.0090.00315.75
7.1.290.0000.01515.77
7.1.280.0030.00615.48
7.1.270.0000.01315.42
7.1.260.0000.01315.44
7.1.200.0030.00715.43
7.1.100.0160.01116.26
7.1.90.1210.01316.06
7.1.80.4310.01116.10
7.1.70.3380.01315.24
7.1.60.5440.01133.09
7.1.50.4580.01032.88
7.1.40.2700.01132.49
7.1.30.2620.01232.52
7.1.20.1170.01832.82
7.1.10.0880.00614.48
7.1.00.1270.01315.01
7.0.240.0130.01315.75
7.0.230.0150.01015.86
7.0.220.1900.01615.51
7.0.210.5470.01014.83
7.0.200.5820.01014.77
7.0.190.4410.00814.88
7.0.180.1560.00914.39
7.0.170.1240.01214.35
7.0.160.1760.01114.55
7.0.150.1230.01114.26
7.0.140.2380.01014.39
7.0.130.0940.00714.73
7.0.120.1990.00814.65
7.0.110.0770.01014.34
7.0.100.0870.01014.38
7.0.90.1550.01014.44
7.0.80.2480.01014.43
7.0.70.0740.01414.44
7.0.60.1100.00914.10
7.0.50.1170.00914.38
7.0.40.2040.00814.46
7.0.30.1970.01214.53
7.0.20.0730.01514.63
7.0.10.1260.01014.50
7.0.00.2050.00814.54
5.6.300.0160.05520.65
5.6.290.0110.06320.81
5.6.280.0130.05620.86
5.6.270.0100.06220.83
5.6.260.0170.07020.85
5.6.250.0130.06620.85
5.6.240.0100.07420.79
5.6.230.0110.06520.89
5.6.220.0200.06720.81
5.6.210.0160.06220.75
5.6.200.0080.06720.72
5.6.190.0210.06020.79
5.6.180.0210.04820.79
5.6.170.0140.05720.84
5.6.160.0110.06720.72
5.6.150.0130.07520.92
5.6.140.0120.06820.80
5.6.130.0110.06720.76
5.6.120.0190.05420.84
5.6.110.0250.05820.73
5.6.100.0200.06120.83
5.6.90.0110.05720.68
5.6.80.0210.05620.23
5.6.70.0130.06320.12
5.6.60.0200.05020.26
5.6.50.0140.05520.21
5.6.40.0150.07420.07
5.6.30.0130.05320.18
5.6.20.0150.06920.09
5.6.10.0150.05720.23
5.6.00.0110.06420.17
5.5.380.0120.06217.44
5.5.370.0110.05417.41
5.5.360.0180.05017.42
5.5.350.0100.05617.39
5.5.340.0100.06117.85
5.5.330.0170.05317.92
5.5.320.0190.05217.92
5.5.310.0110.06117.95
5.5.300.0180.05718.02
5.5.290.0180.05617.92
5.5.280.0070.06317.80
5.5.270.0080.06917.80
5.5.260.0120.05717.86
5.5.250.0080.06217.78
5.5.240.0150.05317.17
5.5.230.0090.06017.19
5.5.220.0220.04417.19
5.5.210.0080.07317.40
5.5.200.0100.06717.36
5.5.190.0070.06217.29
5.5.180.0130.05317.36
5.5.160.0090.05417.20
5.5.150.0120.05617.32
5.5.140.0130.05717.33
5.5.130.0130.05417.36
5.5.120.0150.05717.38
5.5.110.0130.05917.35
5.5.100.0120.06317.13
5.5.90.0130.05117.05
5.5.80.0130.06317.22
5.5.70.0100.05917.03
5.5.60.0080.06617.10
5.5.50.0090.07017.12
5.5.40.0100.05217.21
5.5.30.0130.06117.23
5.5.20.0050.07017.16
5.5.10.0150.04817.07
5.5.00.0080.05717.24
5.4.450.0180.06419.38
5.4.440.0150.06619.26
5.4.430.0110.06919.22
5.4.420.0110.05719.24
5.4.410.0210.04919.09
5.4.400.0130.05918.95
5.4.390.0150.05218.92
5.4.380.0180.05018.81
5.4.370.0120.07218.81
5.4.360.0120.05718.99
5.4.350.0100.06418.96
5.4.340.0100.08318.93
5.4.320.0150.06918.82
5.4.310.0160.04819.06
5.4.300.0100.05718.92
5.4.290.0130.06118.93
5.4.280.0170.05919.02
5.4.270.0230.04819.00
5.4.260.0090.05918.89
5.4.250.0130.06418.79
5.4.240.0140.06318.97
5.4.230.0130.07918.93
5.4.220.0050.06818.89
5.4.210.0130.06318.99
5.4.200.0100.05219.00
5.4.190.0110.06718.75
5.4.180.0130.05618.99
5.4.170.0130.05118.96
5.4.160.0100.05419.04
5.4.150.0110.05918.94
5.4.140.0050.07116.54
5.4.130.0150.05316.48
5.4.120.0160.04516.40
5.4.110.0170.04916.52
5.4.100.0080.06316.55
5.4.90.0120.04716.45
5.4.80.0080.06416.43
5.4.70.0130.06516.40
5.4.60.0080.06116.33
5.4.50.0120.05016.47
5.4.40.0080.06216.54
5.4.30.0110.06116.49
5.4.20.0080.06016.50
5.4.10.0130.05316.48
5.4.00.0020.06015.82
5.3.290.0100.06414.75
5.3.280.0090.06214.73
5.3.270.0170.04714.76
5.3.260.0130.05114.71
5.3.250.0170.06314.54
5.3.240.0120.05414.68
5.3.230.0100.05514.59
5.3.220.0080.06114.59
5.3.210.0150.05114.75
5.3.200.0100.06714.57
5.3.190.0070.06314.51
5.3.180.0130.06714.65
5.3.170.0160.06614.70
5.3.160.0150.05314.65
5.3.150.0150.06714.64
5.3.140.0140.05614.55
5.3.130.0150.07014.53
5.3.120.0140.06014.71
5.3.110.0100.05714.49
5.3.100.0110.05614.13
5.3.90.0230.05214.09
5.3.80.0110.06614.17
5.3.70.0120.05114.05
5.3.60.0100.05513.96
5.3.50.0070.07214.10
5.3.40.0140.05914.02
5.3.30.0100.06514.01
5.3.20.0110.05413.74
5.3.10.0130.04713.74
5.3.00.0030.05713.72
5.2.170.0160.04211.16
5.2.160.0130.03711.05
5.2.150.0100.05411.33
5.2.140.0060.05111.31
5.2.130.0090.03911.22
5.2.120.0050.04411.24
5.2.110.0190.03411.06
5.2.100.0030.05211.17
5.2.90.0150.04711.28
5.2.80.0120.04311.12
5.2.70.0090.05511.18
5.2.60.0060.05111.03
5.2.50.0130.04111.19
5.2.40.0030.04311.15
5.2.30.0080.04011.10
5.2.20.0050.04111.07
5.2.10.0050.04510.88
5.2.00.0050.04910.88
5.1.60.0070.0369.92
5.1.50.0030.04110.07
5.1.40.0070.04610.01
5.1.30.0050.04510.47
5.1.20.0100.04010.54
5.1.10.0140.03010.31
5.1.00.0130.03810.23
5.0.50.0090.0348.63
5.0.40.0020.0408.50
5.0.30.0050.0538.29
5.0.20.0080.0258.29
5.0.10.0060.0268.26
5.0.00.0070.0408.27
4.4.90.0040.0267.38
4.4.80.0050.0227.38
4.4.70.0060.0277.38
4.4.60.0030.0297.38
4.4.50.0070.0257.38
4.4.40.0030.0447.38
4.4.30.0030.0277.38
4.4.20.0030.0277.38
4.4.10.0070.0257.38
4.4.00.0050.0427.38
4.3.110.0090.0257.38
4.3.100.0100.0197.38
4.3.90.0000.0247.38
4.3.80.0020.0417.38
4.3.70.0040.0247.38
4.3.60.0060.0237.38
4.3.50.0080.0217.38
4.3.40.0050.0367.38
4.3.30.0030.0287.38
4.3.20.0040.0267.38
4.3.10.0020.0247.38
4.3.00.0020.0247.38

preferences:
31 ms | 403 KiB | 5 Q