3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputIndex = 0; var_dump($inputIndex); $inputIndex = true; var_dump($inputIndex); $inputIndex = 'true'; var_dump($inputIndex);

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.00317.55
8.3.140.0120.00318.00
8.3.130.0080.00018.36
8.3.120.0040.00420.73
8.3.110.0090.00020.94
8.3.100.0030.00524.06
8.3.90.0060.01226.77
8.3.80.0030.00617.97
8.3.70.0000.01516.21
8.3.60.0140.00718.18
8.3.50.0120.00518.31
8.3.40.0120.01218.77
8.3.30.0040.01118.42
8.3.20.0080.00018.89
8.3.10.0050.00323.65
8.3.00.0040.00420.93
8.2.260.0090.00618.93
8.2.250.0090.00018.26
8.2.240.0060.00318.84
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0090.00018.41
8.2.190.0070.00718.32
8.2.180.0160.00318.04
8.2.170.0140.00022.96
8.2.160.0110.00422.25
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.84
8.2.110.0100.00021.05
8.2.100.0100.00317.78
8.2.90.0040.00418.22
8.2.80.0030.00620.53
8.2.70.0040.00417.38
8.2.60.0040.00417.50
8.2.50.0000.00917.50
8.2.40.0050.00319.53
8.2.30.0050.00219.11
8.2.20.0000.00717.86
8.2.10.0040.00417.97
8.2.00.0050.00319.29
8.1.300.0030.00717.77
8.1.290.0000.01030.84
8.1.280.0090.00925.92
8.1.270.0030.00522.09
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00622.16
8.1.230.0000.01320.99
8.1.220.0030.00517.74
8.1.210.0000.00818.85
8.1.200.0030.00517.22
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0000.00817.62
8.1.160.0040.00418.72
8.1.150.0050.00518.82
8.1.140.0070.00022.13
8.1.130.0000.00719.93
8.1.120.0030.00617.39
8.1.110.0060.00317.42
8.1.100.0000.00717.36
8.1.90.0050.00317.30
8.1.80.0000.00717.33
8.1.70.0070.00017.42
8.1.60.0040.00817.49
8.1.50.0020.00517.45
8.1.40.0040.00417.49
8.1.30.0000.00817.60
8.1.20.0030.00617.58
8.1.10.0070.00017.45
8.1.00.0000.00817.34
8.0.300.0040.00420.07
8.0.290.0000.00816.63
8.0.280.0030.00318.27
8.0.270.0000.00716.75
8.0.260.0000.00618.42
8.0.250.0050.00316.87
8.0.240.0040.00416.87
8.0.230.0000.00816.84
8.0.220.0040.00416.85
8.0.210.0030.00416.79
8.0.200.0040.00416.84
8.0.190.0000.00716.89
8.0.180.0070.00016.82
8.0.170.0030.00616.77
8.0.160.0000.00716.77
8.0.150.0070.00016.64
8.0.140.0030.00316.78
8.0.130.0000.00613.27
8.0.120.0000.00816.78
8.0.110.0050.00216.73
8.0.100.0000.00716.87
8.0.90.0040.00416.81
8.0.80.0110.00716.76
8.0.70.0000.00716.77
8.0.60.0070.00016.77
8.0.50.0070.00016.80
8.0.30.0080.00816.76
8.0.20.0130.01017.40
8.0.10.0040.00416.92
8.0.00.0130.00516.74
7.4.330.0000.00515.55
7.4.320.0040.00416.51
7.4.300.0020.00516.29
7.4.290.0000.00716.38
7.4.280.0000.00816.55
7.4.270.0050.00316.40
7.4.260.0000.00716.41
7.4.250.0030.00616.46
7.4.240.0040.00416.45
7.4.230.0030.00316.54
7.4.220.0040.00416.23
7.4.210.0100.00816.49
7.4.200.0050.00316.52
7.4.160.0120.00516.40
7.4.140.0110.00817.86
7.4.130.0090.01216.60
7.4.120.0110.00816.33
7.4.110.0040.01216.30
7.4.100.0150.00316.48
7.4.90.0100.00716.38
7.4.80.0090.01319.39
7.4.70.0030.01316.46
7.4.60.0030.01716.48
7.4.50.0080.00316.32
7.4.40.0100.01316.29
7.4.00.0060.01014.86
7.3.330.0050.00012.87
7.3.320.0000.00512.87
7.3.310.0000.00816.20
7.3.300.0000.00716.14
7.3.290.0030.00316.16
7.3.280.0030.01616.06
7.3.260.0110.00816.25
7.3.240.0100.01016.22
7.3.230.0070.01016.31
7.3.210.0040.01216.25
7.3.200.0070.01016.29
7.3.190.0000.01716.16
7.3.180.0070.00716.11
7.3.170.0120.00616.34
7.3.160.0140.00616.32
7.3.120.0070.01014.73
7.3.110.0100.00614.71
7.3.100.0060.00614.39
7.3.90.0030.00814.64
7.3.80.0120.00314.74
7.3.70.0030.01014.53
7.3.60.0060.01214.86
7.3.50.0070.00414.69
7.3.40.0080.00414.69
7.3.30.0030.01214.55
7.3.20.0110.00716.57
7.3.10.0090.00616.52
7.3.00.0030.01016.42
7.2.330.0120.00616.25
7.2.320.0030.01316.32
7.2.310.0130.00316.56
7.2.300.0060.00916.54
7.2.290.0050.01116.09
7.2.250.0000.01914.80
7.2.240.0070.01415.01
7.2.230.0000.00914.90
7.2.220.0060.00614.97
7.2.210.0060.00314.68
7.2.200.0090.00314.62
7.2.190.0000.01414.91
7.2.180.0040.01114.66
7.2.170.0030.00914.65
7.2.120.0640.01014.45
7.2.110.0560.01214.36
7.2.100.0590.00714.42
7.2.90.0770.00814.29
7.2.80.0970.00814.19
7.2.70.1160.00814.60
7.2.60.0820.00814.63
7.2.50.1770.01014.63
7.2.40.0770.00514.61
7.2.30.0880.01214.68
7.2.20.1470.00814.69
7.2.10.1780.01114.42
7.2.00.1020.00814.53
7.1.330.0000.01415.73
7.1.320.0070.00315.78
7.1.310.0040.00815.56
7.1.300.0080.00415.78
7.1.290.0070.00715.69
7.1.280.0030.01015.58
7.1.270.0040.01115.54
7.1.260.0030.00715.72
7.1.240.0720.00313.77
7.1.230.0590.01113.80
7.1.220.1100.00313.78
7.1.210.0530.01013.45
7.1.200.0720.00813.71
7.1.190.1200.00813.43
7.1.180.1340.01213.78
7.1.170.1000.01013.56
7.1.160.1240.00713.71
7.1.150.1510.00713.72
7.1.140.1410.00813.60
7.1.130.1240.00313.59
7.1.120.1520.00713.70
7.1.110.1920.00513.70
7.1.100.0790.00713.76
7.1.90.0910.00813.67
7.1.80.0640.00513.45
7.1.70.0860.00513.59
7.1.60.1100.01213.62
7.1.50.0930.00213.80
7.1.40.0700.00813.79
7.1.30.0970.01313.86
7.1.20.0800.00813.69
7.1.10.0650.01013.54
7.1.00.0780.00713.62
5.6.380.0100.00714.20

preferences:
62.46 ms | 403 KiB | 5 Q