3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FRUIT = ['apple','pear','peach']; define('ANIMALS', [ 'dog', 'cat', 'bird' ]); echo ANIMALS[1]; // outputs "cat" echo FRUIT[1]; // outputs "pear" ?>

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.60.0140.00316.63
8.3.50.0110.00922.15
8.3.40.0110.00418.84
8.3.30.0090.00618.52
8.3.20.0070.00020.21
8.3.10.0050.00323.67
8.3.00.0040.00417.66
8.2.180.0070.00725.92
8.2.170.0110.00422.96
8.2.160.0130.00320.39
8.2.150.0050.00224.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.75
8.2.110.0090.00022.16
8.2.100.0060.00617.75
8.2.90.0020.00519.17
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0000.00921.13
8.2.30.0000.00820.67
8.2.20.0040.00417.68
8.2.10.0040.00418.03
8.2.00.0040.00418.00
8.1.280.0150.00625.92
8.1.270.0130.00724.01
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00320.87
8.1.230.0100.00317.48
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0040.00422.00
8.1.150.0000.00818.92
8.1.140.0040.00417.25
8.1.130.0070.00017.54
8.1.120.0070.00017.43
8.1.110.0040.00417.29
8.1.100.0050.00217.39
8.1.90.0070.00017.28
8.1.80.0000.00817.34
8.1.70.0070.00017.41
8.1.60.0030.00517.46
8.1.50.0000.00817.34
8.1.40.0080.00017.44
8.1.30.0040.00417.47
8.1.20.0000.00817.53
8.1.10.0050.00217.54
8.1.00.0040.00417.40
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.37
8.0.270.0000.00717.05
8.0.260.0030.00317.18
8.0.250.0040.00416.79
8.0.240.0040.00416.87
8.0.230.0000.00716.84
8.0.220.0060.00016.83
8.0.210.0030.00316.70
8.0.200.0000.00616.91
8.0.190.0040.00316.88
8.0.180.0050.00216.85
8.0.170.0040.00416.73
8.0.160.0000.00716.86
8.0.150.0070.00016.88
8.0.140.0080.00016.78
8.0.130.0030.00313.21
8.0.120.0080.00016.80
8.0.110.0040.00416.66
8.0.100.0000.00716.81
8.0.90.0040.00416.86
8.0.80.0040.01116.80
8.0.70.0040.00416.86
8.0.60.0070.00016.66
8.0.50.0000.00716.72
8.0.30.0040.01416.99
8.0.20.0090.00917.40
8.0.10.0040.00416.91
8.0.00.0080.00916.75
7.4.330.0000.00515.08
7.4.320.0000.00716.44
7.4.300.0000.00616.33
7.4.290.0000.00816.51
7.4.280.0040.00416.27
7.4.270.0070.00016.40
7.4.260.0030.00316.40
7.4.250.0040.00416.47
7.4.240.0040.00316.47
7.4.230.0030.00316.22
7.4.220.0090.01616.45
7.4.210.0060.00916.56
7.4.200.0070.00016.50
7.4.160.0090.00916.22
7.4.150.0110.00717.40
7.4.140.0140.00717.86
7.4.130.0060.01216.47
7.4.120.0080.00916.42
7.4.110.0130.00316.22
7.4.100.0100.00716.42
7.4.90.0070.01016.60
7.4.80.0120.00619.39
7.4.70.0080.00816.39
7.4.60.0120.00416.26
7.4.50.0000.00616.37
7.4.40.0110.00616.48
7.4.30.0070.01016.20
7.4.00.0090.00614.71
7.3.330.0000.00512.94
7.3.320.0000.00513.13
7.3.310.0050.00216.31
7.3.300.0000.00716.25
7.3.290.0060.01016.23
7.3.280.0160.00116.20
7.3.270.0070.01017.40
7.3.260.0090.00916.27
7.3.250.0080.01216.23
7.3.240.0160.00316.47
7.3.230.0100.00716.39
7.3.210.0090.01116.47
7.3.200.0090.00916.36
7.3.190.0070.01116.50
7.3.180.0100.00616.21
7.3.170.0100.00716.29
7.3.160.0140.00716.27
7.3.10.0060.00916.79
7.3.00.0030.01616.67
7.2.330.0070.01116.55
7.2.320.0030.01516.51
7.2.310.0150.00316.52
7.2.300.0100.00716.67
7.2.290.0030.01716.67
7.2.130.0060.01216.84
7.2.120.0070.01017.04
7.2.110.0040.01116.77
7.2.100.0060.01016.87
7.2.90.0070.00316.79
7.2.80.0080.00416.57
7.2.70.0090.00616.86
7.2.60.0050.00816.49
7.2.50.0060.00316.50
7.2.40.0110.00916.67
7.2.30.0060.01216.79
7.2.20.0030.01416.66
7.2.10.0070.00716.95
7.2.00.0110.00317.91
7.1.250.0070.00415.65
7.1.200.0060.00615.64
7.1.100.0070.00718.09
7.1.70.0040.00417.13
7.1.60.0100.01619.50
7.1.50.0120.00916.57
7.1.00.0030.07722.45
7.0.200.0240.00714.61
7.0.60.0070.07719.89
7.0.50.0000.04317.80
7.0.40.0070.04319.98
7.0.30.0330.07020.04
7.0.20.0300.04020.33
7.0.10.0070.08020.12
7.0.00.0030.05020.29
5.6.280.0030.03320.78
5.6.210.0170.06320.45
5.6.200.0030.05318.21
5.6.190.0070.06320.27
5.6.180.0300.03020.44
5.6.170.0330.03320.38
5.6.160.0030.08320.47
5.6.150.0000.04718.21
5.6.140.0100.06718.16
5.6.130.0170.08018.19
5.6.120.0070.09021.00
5.6.110.0070.06721.02
5.6.100.0200.07320.99
5.6.90.0030.04020.96
5.6.80.0130.07020.48
5.5.350.0000.08320.43
5.5.340.0030.03717.99
5.5.330.0100.06320.37
5.5.320.3670.04320.28
5.5.310.0230.04720.17
5.5.300.0130.08017.95
5.5.290.0070.04717.90
5.5.280.0070.05320.68
5.5.270.0070.03720.85
5.5.260.0100.06720.88
5.5.250.0100.07020.57
5.5.240.0070.03720.35
5.4.450.0770.07019.55
5.4.440.0770.05019.54
5.4.430.0700.05019.34
5.4.420.0870.04019.07
5.4.410.0670.06019.41
5.4.400.0730.07319.25
5.4.390.0730.05019.05
5.4.380.0730.05018.75
5.4.370.0770.06319.28
5.4.360.0730.05718.89
5.4.350.0830.05319.02
5.4.340.0830.07018.89
5.4.320.0730.05319.09
5.4.310.0730.04719.07
5.4.300.0670.05019.07
5.4.290.0730.05019.07
5.4.280.0830.05719.05
5.4.270.0670.05318.74
5.4.260.0700.05719.27
5.4.250.0730.05019.31
5.4.240.0730.05018.74
5.4.230.0700.05019.02
5.4.220.0670.05319.27
5.4.210.0630.06019.23
5.4.200.0770.05019.23
5.4.190.0730.05719.27
5.4.180.0730.05719.04
5.4.170.0670.05319.09
5.4.160.0630.05719.15
5.4.150.0730.05319.05
5.4.140.0930.05316.28
5.4.130.0800.03716.43
5.4.120.0700.04716.31
5.4.110.0700.05316.18
5.4.100.0730.06016.46
5.4.90.0670.04716.55
5.4.80.0800.04316.46
5.4.70.0270.07016.29
5.4.60.0130.06016.37
5.4.50.0070.06316.28
5.4.40.0270.06716.42
5.4.30.0370.06316.20
5.4.20.0070.04716.28

preferences:
61.45 ms | 401 KiB | 5 Q