3v4l.org

run code in 300+ PHP versions simultaneously
<?php 0; $offset = $argv[0]; // beware, no input validation! $query = $offset; echo $query; 0; $offset='beware'; $query = $offset; echo $query; ?>

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.0110.00416.58
8.3.60.0070.00718.17
8.3.50.0150.00421.99
8.3.40.0090.00618.44
8.3.30.0090.00618.68
8.3.20.0040.00418.61
8.3.10.0040.00421.27
8.3.00.0070.00021.65
8.2.190.0110.00316.58
8.2.180.0000.01518.54
8.2.170.0110.00422.96
8.2.160.0130.00320.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0000.00921.00
8.2.100.0040.00817.91
8.2.90.0000.00819.34
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0050.00218.03
8.2.50.0000.01018.07
8.2.40.0070.00318.26
8.2.30.0040.00419.97
8.2.20.0040.00417.62
8.2.10.0000.00717.61
8.2.00.0040.00417.64
8.1.280.0090.00625.92
8.1.270.0060.00323.73
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.51
8.1.230.0060.00620.90
8.1.220.0000.00818.77
8.1.210.0040.00418.77
8.1.200.0060.00316.97
8.1.190.0070.00017.39
8.1.180.0040.00418.10
8.1.170.0040.00418.27
8.1.160.0050.00218.71
8.1.150.0070.00418.58
8.1.140.0050.00317.27
8.1.130.0030.00317.91
8.1.120.0040.00417.45
8.1.110.0030.00617.29
8.1.100.0030.00517.20
8.1.90.0040.00417.38
8.1.80.0070.00017.22
8.1.70.0040.00417.38
8.1.60.0000.00817.56
8.1.50.0000.00817.39
8.1.40.0050.00217.43
8.1.30.0000.00817.59
8.1.20.0050.00317.58
8.1.10.0030.00617.49
8.1.00.0030.00617.47
8.0.300.0040.00419.97
8.0.290.0000.00716.63
8.0.280.0070.00018.43
8.0.270.0030.00317.24
8.0.260.0030.00316.73
8.0.250.0050.00316.83
8.0.240.0000.00816.97
8.0.230.0070.00016.86
8.0.220.0000.00716.79
8.0.210.0000.00716.75
8.0.200.0000.00616.85
8.0.190.0000.00716.80
8.0.180.0040.00416.87
8.0.170.0040.00416.81
8.0.160.0040.00416.86
8.0.150.0000.00816.66
8.0.140.0090.00016.70
8.0.130.0000.00613.33
8.0.120.0070.00016.79
8.0.110.0000.00816.64
8.0.100.0030.00616.70
8.0.90.0050.00316.82
8.0.80.0090.00616.73
8.0.70.0040.00416.71
8.0.60.0040.00416.70
8.0.50.0040.00416.85
8.0.30.0150.00616.93
8.0.20.0120.00717.40
8.0.10.0000.00817.05
8.0.00.0120.00816.55
7.4.330.0020.00213.43
7.4.320.0000.00716.38
7.4.300.0000.00616.52
7.4.290.0050.00216.51
7.4.280.0000.00816.45
7.4.270.0050.00216.46
7.4.260.0000.00513.13
7.4.250.0000.00716.41
7.4.240.0040.00416.54
7.4.230.0000.00716.30
7.4.220.0100.01016.57
7.4.210.0070.00916.47
7.4.200.0000.00716.59
7.4.190.0070.00016.64
7.4.160.0080.00816.38
7.4.150.0190.00317.40
7.4.140.0120.00517.86
7.4.130.0100.00616.48
7.4.120.0110.00616.40
7.4.110.0000.01716.36
7.4.100.0070.01016.52
7.4.90.0090.00916.47
7.4.80.0150.00319.37
7.4.70.0080.00816.41
7.4.60.0080.00816.62
7.4.50.0030.00616.34
7.4.40.0070.00722.27
7.4.30.0110.01116.35
7.4.00.0030.01314.93
7.3.330.0050.00013.00
7.3.320.0000.00613.09
7.3.310.0030.00316.26
7.3.300.0040.00416.29
7.3.290.0100.00416.48
7.3.280.0070.00916.40
7.3.270.0120.00417.40
7.3.260.0080.00818.24
7.3.250.0110.00916.37
7.3.240.0120.00316.41
7.3.230.0080.00816.39
7.3.210.0060.00916.34
7.3.200.0100.00719.39
7.3.190.0070.01416.57
7.3.180.0160.00016.21
7.3.170.0060.01016.27
7.3.160.0120.00416.46
7.3.120.0070.01015.00
7.3.00.0070.00316.59
7.2.330.0070.01016.38
7.2.320.0070.01416.66
7.2.310.0100.00716.77
7.2.300.0130.00416.78
7.2.290.0060.00916.72
7.2.130.0030.01017.01
7.2.120.0040.00816.57
7.2.110.0030.01016.78
7.2.100.0070.00716.96
7.2.90.0070.01016.58
7.2.80.0130.00316.64
7.2.70.0030.00616.84
7.2.60.0120.00316.76
7.2.50.0040.00416.84
7.2.40.0000.01516.77
7.2.30.0030.00616.86
7.2.20.0130.00016.94
7.2.10.0110.00416.94
7.2.00.0050.01017.95
7.1.250.0040.00415.50
7.1.240.0100.00615.59
7.1.230.0000.00715.56
7.1.220.0070.00315.65
7.1.210.0030.00615.41
7.1.200.0100.00315.80
7.1.190.0060.00615.76
7.1.180.0070.00715.71
7.1.170.0000.01515.55
7.1.160.0120.00615.80
7.1.150.0050.00515.75
7.1.140.0070.00715.55
7.1.130.0090.00015.70
7.1.120.0000.01415.77
7.1.110.0060.01015.73
7.1.100.0050.00717.07
7.1.90.0000.01415.44
7.1.80.0060.00615.63
7.1.70.0030.00716.55
7.1.60.0080.00817.61
7.1.50.0080.00416.35
7.1.40.0070.00715.53
7.1.30.0070.00015.55
7.1.20.0050.00315.63
7.1.10.0000.01715.48
7.1.00.0050.02818.90
7.0.330.0060.00615.41
7.0.320.0090.00315.45
7.0.310.0110.00015.44
7.0.300.0040.01115.48
7.0.290.0040.00415.30
7.0.280.0040.00815.45
7.0.270.0060.00615.06
7.0.260.0000.00915.21
7.0.250.0040.01115.41
7.0.240.0040.00815.48
7.0.230.0070.00715.48
7.0.220.0040.00415.27
7.0.210.0040.00815.50
7.0.200.0070.00415.97
7.0.190.0030.00515.45
7.0.180.0070.00715.37
7.0.170.0040.01115.44
7.0.160.0060.00915.49
7.0.150.0090.00015.27
7.0.140.0010.04018.52
7.0.130.0100.00315.45
7.0.120.0080.00515.48
7.0.110.0060.00615.54
7.0.100.0070.00315.43
7.0.90.0040.00415.12
7.0.80.0040.00815.19
7.0.70.0070.03918.65
7.0.60.0070.03318.56
7.0.50.0090.03118.78
7.0.40.0050.03516.79
7.0.30.0050.04216.86
7.0.20.0060.02816.84
7.0.10.0050.02516.72
7.0.00.0070.04516.68
5.6.380.0080.00414.47
5.6.370.0100.00014.27
5.6.360.0070.00314.29
5.6.350.0000.01214.66
5.6.340.0030.00714.05
5.6.330.0090.00614.29
5.6.320.0060.00614.14
5.6.310.0030.00614.29
5.6.300.0110.00414.33
5.6.290.0000.01413.98
5.6.280.0080.03717.64
5.6.270.0130.00014.09
5.6.260.0030.01014.11
5.6.250.0030.00714.12
5.6.240.0040.01113.86
5.6.230.0040.00714.11
5.6.220.0100.04217.41
5.6.210.0080.04317.48
5.6.200.0020.04817.44
5.6.190.0050.02417.58
5.6.180.0100.04117.47
5.6.170.0020.05017.65
5.6.160.0090.04617.72
5.6.150.0060.04617.51
5.6.140.0140.03617.62
5.6.130.0090.04517.77
5.6.120.0050.03517.66
5.6.110.0080.04717.44
5.6.100.0120.02817.81
5.6.90.0090.04117.60
5.6.80.0050.04217.35
5.6.70.0050.04517.22
5.6.60.0110.04117.35
5.6.50.0060.02817.27
5.6.40.0020.02817.12
5.6.30.0060.03317.41
5.6.20.0050.04217.31
5.6.10.0050.02517.34
5.6.00.0060.04117.23
5.5.380.0060.00611.05
5.5.370.0000.01111.00
5.5.360.0080.03815.72
5.5.350.0020.03315.71
5.5.340.0120.03815.89
5.5.330.0080.03715.90
5.5.320.0020.03115.82
5.5.310.0030.05015.93
5.5.300.0070.04215.95
5.5.290.0130.03615.93
5.5.280.0080.04016.00
5.5.270.0020.04815.92
5.5.260.0050.04315.94
5.5.250.0080.03815.84
5.5.240.0030.03815.59
5.5.230.0090.03315.64
5.5.220.0060.04315.63
5.5.210.0080.03715.63
5.5.200.0030.03115.63
5.5.190.0040.02715.62
5.5.180.0050.04215.63
5.5.170.0050.00311.00
5.5.160.0060.03615.55
5.5.150.0030.04015.55
5.5.140.0050.03615.60
5.5.130.0000.05215.62
5.5.120.0070.04215.62
5.5.110.0070.04315.65
5.5.100.0070.03815.55
5.5.90.0040.04015.53
5.5.80.0050.03415.58
5.5.70.0070.03715.54
5.5.60.0060.04115.50
5.5.50.0030.04815.53
5.5.40.0030.04515.49
5.5.30.0070.02015.52
5.5.20.0050.02715.53
5.5.10.0030.03915.51
5.5.00.0010.03315.55
5.4.450.0030.03315.19
5.4.440.0030.04615.13
5.4.430.0020.03415.26
5.4.420.0050.03315.22
5.4.410.0030.04315.11
5.4.400.0010.02915.06
5.4.390.0110.03514.93
5.4.380.0070.04015.12
5.4.370.0030.04615.04
5.4.360.0040.02615.07
5.4.350.0020.03314.95
5.4.340.0020.04414.89
5.4.330.0080.00011.00
5.4.320.0080.03714.95
5.4.310.0050.03215.02
5.4.300.0080.03315.07
5.4.290.0080.03815.05
5.4.280.0060.03914.99
5.4.270.0060.04315.06
5.4.260.0050.03914.97
5.4.250.0070.03614.89
5.4.240.0100.02214.97
5.4.230.0050.04715.03
5.4.220.0050.02714.98
5.4.210.0020.04415.01
5.4.200.0050.04014.99
5.4.190.0070.03715.04
5.4.180.0030.04414.98
5.4.170.0020.02714.90
5.4.160.0020.04514.97
5.4.150.0080.03315.03
5.4.140.0050.02213.68
5.4.130.0050.04013.67
5.4.120.0050.03513.66
5.4.110.0070.03813.72
5.4.100.0020.04213.72
5.4.90.0050.04013.72
5.4.80.0030.04013.62
5.4.70.0100.02713.66
5.4.60.0040.04213.61
5.4.50.0030.03313.60
5.4.40.0020.02813.72
5.4.30.0040.04213.59
5.4.20.0050.03713.64
5.4.10.0050.03913.64
5.4.00.0090.02713.37
5.3.290.0070.03712.83
5.3.280.0100.02812.79
5.3.270.0040.03312.73
5.3.260.0020.03012.79
5.3.250.0060.03012.73
5.3.240.0030.02512.80
5.3.230.0080.02312.80
5.3.220.0080.03512.71
5.3.210.0050.03512.79
5.3.200.0070.03912.71
5.3.190.0090.03712.78
5.3.180.0030.03512.78
5.3.170.0070.04012.75
5.3.160.0030.02812.77
5.3.150.0050.02712.71
5.3.140.0050.04012.77
5.3.130.0030.03512.71
5.3.120.0020.03112.68
5.3.110.0040.04012.77
5.3.100.0070.03712.45
5.3.90.0030.02912.44
5.3.80.0030.04312.44
5.3.70.0010.03612.44
5.3.60.0050.03112.39
5.3.50.0020.03312.47
5.3.40.0020.04212.35
5.3.30.0080.03012.44
5.3.20.0000.03612.35
5.3.10.0040.03012.32
5.3.00.0030.04212.20
5.2.170.0030.03411.10
5.2.160.0050.03110.99
5.2.150.0080.03211.05
5.2.140.0030.03311.00
5.2.130.0020.01911.04
5.2.120.0050.03310.96
5.2.110.0060.03011.05
5.2.100.0060.03211.02
5.2.90.0070.03010.98
5.2.80.0030.03510.96
5.2.70.0030.03410.96
5.2.60.0000.03610.96
5.2.50.0060.03111.01
5.2.40.0030.03311.02
5.2.30.0040.03210.98
5.2.20.0020.02310.97
5.2.10.0020.03210.96
5.2.00.0100.02710.96
5.1.60.0030.02810.96
5.1.50.0050.02510.96
5.1.40.0020.03010.96
5.1.30.0040.02710.96
5.1.20.0010.03310.96
5.1.10.0070.02710.96
5.1.00.0080.02310.96
5.0.50.0020.02310.96
5.0.40.0020.02410.96
5.0.30.0000.03710.96
5.0.20.0030.02310.96
5.0.10.0020.01910.96
5.0.00.0050.02610.96
4.4.90.0040.01710.96
4.4.80.0000.02210.96
4.4.70.0030.01510.96
4.4.60.0000.02010.96
4.4.50.0030.01710.96
4.4.40.0010.03010.96
4.4.30.0000.02110.96
4.4.20.0000.02110.96
4.4.10.0030.02010.96
4.4.00.0040.02010.96
4.3.110.0030.01710.96
4.3.100.0000.02210.96
4.3.90.0000.02010.96
4.3.80.0040.02710.96
4.3.70.0000.01910.96
4.3.60.0010.01410.96
4.3.50.0020.01410.96
4.3.40.0000.03010.96
4.3.30.0000.02210.96
4.3.20.0020.02210.96
4.3.10.0050.01810.96
4.3.00.0020.01910.96

preferences:
31.18 ms | 401 KiB | 5 Q