3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("MAXSIZE", 100); function test(){ return <<<HERE MAXSIZE HERE; } echo test();

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.120.0070.01323.97
8.4.110.0120.00922.12
8.4.100.0120.00817.72
8.4.90.0090.01117.89
8.4.80.0030.00519.68
8.4.70.0090.01117.65
8.4.60.0080.01218.63
8.4.50.0030.00619.30
8.4.40.0060.01319.50
8.4.30.0120.00819.51
8.4.20.0030.00720.38
8.4.10.0040.00417.80
8.3.250.0090.00918.54
8.3.240.0100.01017.07
8.3.230.0120.00716.44
8.3.220.0150.00417.05
8.3.210.0140.00616.36
8.3.200.0030.00516.58
8.3.190.0040.00316.90
8.3.180.0080.01016.56
8.3.170.0090.01016.99
8.3.160.0030.01518.54
8.3.150.0130.00720.70
8.3.140.0040.01118.28
8.3.130.0040.00816.69
8.3.120.0030.00619.11
8.3.110.0090.00020.94
8.3.100.0070.00324.06
8.3.90.0040.00426.77
8.3.80.0100.00017.97
8.3.70.0120.00316.47
8.3.60.0090.00618.46
8.3.50.0060.00718.15
8.3.40.0130.00318.72
8.3.30.0070.00718.71
8.3.20.0000.00818.60
8.3.10.0080.00021.90
8.3.00.0080.00020.58
8.2.290.0120.00920.36
8.2.280.0040.00418.13
8.2.270.0110.00718.74
8.2.260.0040.00418.17
8.2.250.0060.00318.37
8.2.240.0080.00017.04
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0060.01226.77
8.2.200.0060.00316.50
8.2.190.0160.00018.20
8.2.180.0150.00316.50
8.2.170.0030.01322.96
8.2.160.0100.00719.30
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01419.64
8.2.120.0070.00326.35
8.2.110.0060.00322.28
8.2.100.0090.00317.88
8.2.90.0090.00017.63
8.2.80.0030.00617.97
8.2.70.0030.00617.80
8.2.60.0040.00417.90
8.2.50.0000.00918.10
8.2.40.0000.00719.27
8.2.30.0090.00019.18
8.2.20.0040.00417.94
8.2.10.0050.00217.95
8.2.00.0050.00317.50
8.1.330.0140.00516.50
8.1.320.0100.00916.16
8.1.310.0150.00316.54
8.1.300.0060.00318.21
8.1.290.0030.00630.84
8.1.280.0090.00925.92
8.1.270.0060.00318.61
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00023.96
8.1.230.0120.00418.74
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.10
8.1.190.0030.00517.10
8.1.180.0000.00718.10
8.1.170.0030.00518.41
8.1.160.0040.00418.80
8.1.150.0000.00718.64
8.1.140.0000.00822.14
8.1.130.0040.00419.95
8.1.120.0000.00717.36
8.1.110.0030.00617.36
8.1.100.0070.00017.34
8.1.90.0040.00417.35
8.1.80.0080.00017.23
8.1.70.0030.00317.23
8.1.60.0000.00817.45
8.1.50.0000.00817.49
8.1.40.0040.00417.46
8.1.30.0000.00717.43
8.1.20.0040.00417.63
8.1.10.0000.00717.50
8.1.00.0000.00717.41
8.0.300.0000.00721.59
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0030.00317.24
8.0.260.0030.00318.30
8.0.250.0030.00316.87
8.0.240.0000.00616.86
8.0.230.0030.00616.86
8.0.220.0070.00016.77
8.0.210.0030.00416.77
8.0.200.0030.00316.91
8.0.190.0040.00416.87
8.0.180.0040.00416.86
8.0.170.0030.00616.82
8.0.160.0000.00816.89
8.0.150.0070.00016.64
8.0.140.0000.00716.68
8.0.130.0050.00013.22
8.0.120.0040.00416.70
8.0.110.0000.00916.71
8.0.100.0050.00316.79
8.0.90.0040.00416.84
8.0.80.0110.00816.87
8.0.70.0000.00816.75
8.0.60.0000.00716.75
8.0.50.0050.00216.71
8.0.30.0100.00817.01
8.0.20.0100.01117.40
8.0.10.0050.00216.83
8.0.00.0150.00716.76
7.4.330.0050.00015.55
7.4.320.0060.00016.39
7.4.300.0040.00416.52
7.4.290.0050.00316.45
7.4.280.0000.00816.47
7.4.270.0030.00316.47
7.4.260.0030.00316.46
7.4.250.0030.00316.42
7.4.240.0000.00816.55
7.4.230.0040.00416.49
7.4.220.0080.00016.39
7.4.210.0080.00816.45
7.4.200.0040.00416.55
7.4.160.0080.00716.45
7.4.140.0100.00817.86
7.4.130.0030.01316.55
7.4.120.0080.01016.44
7.4.110.0100.01316.58
7.4.100.0100.00616.57
7.4.90.0100.01616.36
7.4.80.0030.01419.39
7.4.70.0110.01116.41
7.4.60.0070.01016.31
7.4.50.0070.00816.33
7.4.40.0030.01316.52
7.4.00.0110.00414.73
7.3.330.0000.00513.38
7.3.320.0030.00313.28
7.3.310.0060.00016.15
7.3.300.0040.00416.31
7.3.290.0070.00016.27
7.3.280.0070.00716.30
7.3.260.0090.01116.51
7.3.240.0060.01116.40
7.3.230.0100.00716.43
7.3.210.0080.01516.39
7.3.200.0060.01016.60
7.3.190.0120.01116.33
7.3.180.0130.00316.38
7.3.170.0060.01616.33
7.3.160.0060.00916.32
7.3.120.0070.01014.99
7.3.110.0060.00314.41
7.3.100.0040.00814.57
7.3.90.0100.00714.83
7.3.80.0060.00614.78
7.3.70.0070.01014.52
7.3.60.0100.01014.83
7.3.50.0060.01014.85
7.3.40.0090.00314.54
7.3.30.0030.00814.88
7.3.20.0070.01016.71
7.3.10.0140.00316.70
7.3.00.0090.00016.63
7.2.330.0030.01316.64
7.2.320.0070.01016.68
7.2.310.0060.01016.71
7.2.300.0040.01116.60
7.2.290.0110.00516.62
7.2.250.0060.00615.00
7.2.240.0070.01115.13
7.2.230.0100.00714.47
7.2.220.0070.00714.95
7.2.210.0060.00314.50
7.2.200.0060.00614.89
7.2.190.0060.01014.82
7.2.180.0040.00714.91
7.2.170.0040.00714.95
7.2.110.1560.00214.41
7.2.100.1550.00614.68
7.2.90.0630.00814.61
7.2.80.1730.00514.62
7.2.70.0870.01014.80
7.2.60.1470.01014.97
7.2.50.1800.00314.89
7.2.40.1790.00214.88
7.2.30.1340.01014.87
7.2.20.1470.00814.79
7.2.10.1040.00314.93
7.2.00.1530.00314.75
7.1.330.0070.00815.81
7.1.320.0140.00015.59
7.1.310.0000.01015.51
7.1.300.0030.01015.60
7.1.290.0000.01415.31
7.1.280.0060.00915.73
7.1.270.0040.01115.64
7.1.260.0040.00415.48
7.1.230.2090.00713.70
7.1.220.1720.00813.72
7.1.210.1490.00513.70
7.1.200.1580.00813.75
7.1.190.0690.01013.74
7.1.180.1230.00313.71
7.1.170.1530.01013.80
7.1.160.1540.00913.83
7.1.150.1110.00613.70
7.1.140.1070.00513.68
7.1.130.1370.00513.79
7.1.120.1510.00513.72
7.1.110.0890.00313.89
7.1.100.1250.00513.84
7.1.90.1840.00813.78
7.1.80.1590.00613.75
7.1.70.1240.01013.80
7.1.60.1540.01431.77
7.1.50.1410.01131.81
7.1.40.1210.00731.50
7.1.30.1970.01731.84
7.1.20.2090.01531.85
7.1.10.1300.00613.69
7.1.00.1360.00813.77
5.6.380.0130.00614.09

preferences:
29.65 ms | 403 KiB | 5 Q