3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Sample Page Name</title> </head> <body> <h1>This is a heading 1 - it's big</h1> <h2>This is a smaller heading.</h2> <p>This is paragraph text. It's more of a normal size.</p> <p>Check out the math that is being calculated by PHP below...</p> <?php $int1 = 1; $int2 = 3; $sum = $int1 + $int2; echo $sum . " - that's the sum of: " . $int1 . " and " . $int2 . "."; ?> <p>Hope that makes sense!</p> </body> </html>

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.0100.01016.50
8.3.50.0130.00622.00
8.3.40.0080.00818.67
8.3.30.0080.00519.01
8.3.20.0050.00320.34
8.3.10.0040.00423.48
8.3.00.0000.00819.05
8.2.180.0110.01116.50
8.2.170.0110.00322.96
8.2.160.0030.01020.33
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01426.16
8.2.120.0080.00020.91
8.2.110.0090.00022.24
8.2.100.0090.00319.20
8.2.90.0070.00019.22
8.2.80.0030.00517.97
8.2.70.0050.00517.50
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0040.00419.95
8.2.30.0060.00318.30
8.2.20.0040.00417.64
8.2.10.0070.00018.04
8.2.00.0040.00417.76
8.1.280.0150.00625.92
8.1.270.0040.00423.86
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00823.92
8.1.230.0080.00419.07
8.1.220.0000.00817.75
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00016.98
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0050.00321.92
8.1.150.0040.00418.62
8.1.140.0040.00417.36
8.1.130.0000.01017.86
8.1.120.0020.00517.34
8.1.110.0030.00517.33
8.1.100.0000.00817.41
8.1.90.0000.00717.45
8.1.80.0040.00417.49
8.1.70.0070.00017.41
8.1.60.0090.00017.57
8.1.50.0040.00417.38
8.1.40.0040.00417.40
8.1.30.0030.00517.61
8.1.20.0050.00317.63
8.1.10.0000.00717.46
8.1.00.0000.00817.38
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0030.00517.16
8.0.260.0000.00617.25
8.0.250.0000.00716.82
8.0.240.0030.00616.86
8.0.230.0030.00316.83
8.0.220.0000.00716.95
8.0.210.0000.00816.89
8.0.200.0040.00416.93
8.0.190.0040.00416.95
8.0.180.0000.00816.80
8.0.170.0040.00416.86
8.0.160.0070.00016.73
8.0.150.0060.00316.72
8.0.140.0050.00216.75
8.0.130.0000.00513.32
8.0.120.0070.00016.89
8.0.110.0040.00416.94
8.0.100.0000.00716.87
8.0.90.0090.00017.00
8.0.80.0060.01616.95
8.0.70.0040.00416.82
8.0.60.0000.00716.78
8.0.50.0040.00416.73
8.0.30.0100.00917.19
8.0.20.0100.01217.40
8.0.10.0000.00716.71
8.0.00.0110.01016.76
7.4.330.0030.00315.00
7.4.320.0000.00616.58
7.4.300.0000.00616.47
7.4.290.0050.00316.48
7.4.280.0030.00516.50
7.4.270.0000.00716.60
7.4.260.0040.00416.60
7.4.250.0000.00716.40
7.4.240.0060.00116.56
7.4.230.0000.00716.27
7.4.220.0180.00016.40
7.4.210.0080.00616.63
7.4.200.0040.00416.63
7.4.160.0030.01216.29
7.4.150.0140.01717.40
7.4.140.0100.00717.86
7.4.130.0060.01116.47
7.4.120.0070.01016.51
7.4.110.0060.01216.39
7.4.100.0100.01016.51
7.4.90.0140.00516.54
7.4.80.0120.00619.39
7.4.70.0060.01016.33
7.4.60.0100.00716.39
7.4.50.0000.00816.41
7.4.40.0090.00616.51
7.4.30.0070.01016.42
7.4.10.0130.00714.78
7.4.00.0070.01014.85
7.3.330.0060.00013.01
7.3.320.0060.00013.19
7.3.310.0040.00416.32
7.3.300.0000.00716.31
7.3.290.0090.00416.28
7.3.280.0060.01016.25
7.3.270.0290.01017.40
7.3.260.0120.01216.26
7.3.250.0110.00816.24
7.3.240.0130.00616.63
7.3.230.0160.00316.52
7.3.210.0090.00816.52
7.3.200.0130.00319.39
7.3.190.0110.00716.29
7.3.180.0060.01216.61
7.3.170.0130.00316.27
7.3.160.0060.01016.26
7.3.130.0050.00514.79
7.3.120.0050.01014.69
7.3.110.0050.01214.63
7.3.100.0030.01214.98
7.3.90.0030.01414.53
7.3.80.0020.01214.59
7.3.70.0030.01014.69
7.3.60.0040.01014.67
7.3.50.0060.00814.73
7.3.40.0070.00714.64
7.3.30.0070.00514.71
7.3.20.0070.00716.62
7.3.10.0040.00916.67
7.3.00.0030.00916.58
7.2.330.0110.00716.37
7.2.320.0060.01616.47
7.2.310.0060.01116.69
7.2.300.0110.00616.30
7.2.290.0070.01516.49
7.2.260.0060.00614.82
7.2.250.0050.01014.80
7.2.240.0030.01315.06
7.2.230.0100.00814.98
7.2.220.0060.01014.96
7.2.210.0060.00714.94
7.2.200.0030.00814.86
7.2.190.0090.00714.95
7.2.180.0070.00915.01
7.2.170.0080.00715.15
7.2.160.0080.00414.98
7.2.150.0040.01116.90
7.2.140.0090.00316.79
7.2.130.0030.01617.00
7.2.120.0110.00717.07
7.2.110.0000.01216.92
7.2.100.0000.01416.56
7.2.90.0110.00616.92
7.2.80.0100.00616.89
7.2.70.0000.01517.00
7.2.60.0100.00516.84
7.2.50.0050.01016.74
7.2.40.0110.00716.96
7.2.30.0070.00717.10
7.2.20.0120.00416.94
7.2.10.0090.00916.76
7.2.00.0000.01917.14
7.1.330.0050.01015.58
7.1.320.0030.01015.71
7.1.310.0030.00715.67
7.1.300.0050.01115.66
7.1.290.0060.00415.55
7.1.280.0080.00515.61
7.1.270.0080.00615.70
7.1.260.0030.00915.68
7.1.250.0040.01115.63
7.1.240.0070.00715.78
7.1.230.0000.01215.84
7.1.220.0100.00315.64
7.1.210.0070.01015.63
7.1.200.0070.00715.60
7.1.190.0040.00815.71
7.1.180.0040.00815.46
7.1.170.0100.00715.71
7.1.160.0090.00615.54
7.1.150.0100.00615.69
7.1.140.0040.00415.67
7.1.130.0090.00615.77
7.1.120.0040.00415.84
7.1.110.0040.00415.75
7.1.100.0100.00715.91
7.1.90.0060.00615.71
7.1.80.0090.00615.71
7.1.70.0070.00416.47
7.1.60.0080.00917.71
7.1.50.0070.01216.41
7.1.40.0100.00315.57
7.1.30.0030.00615.56
7.1.20.0080.00315.82
7.1.10.0080.00415.91
7.1.00.0060.04119.11
7.0.330.0030.01415.36
7.0.320.0120.00315.55
7.0.310.0000.01215.54
7.0.300.0080.00615.53
7.0.290.0040.01115.53
7.0.280.0000.01315.36
7.0.270.0040.00815.52
7.0.260.0000.00815.43
7.0.250.0000.01115.29
7.0.240.0000.01515.50
7.0.230.0100.00315.48
7.0.220.0040.00815.14
7.0.210.0100.00315.23
7.0.200.0050.00615.97
7.0.190.0030.00615.53
7.0.180.0030.01015.42
7.0.170.0030.00615.50
7.0.160.0070.00315.18
7.0.150.0060.00315.34
7.0.140.0060.03818.57
7.0.130.0060.00615.33
7.0.120.0030.01215.54
7.0.110.0090.04117.78
7.0.100.0080.03317.63
7.0.90.0070.02817.62
7.0.80.0060.04517.63
7.0.70.0040.02117.66
7.0.60.0080.02317.59
7.0.50.0050.02217.87
7.0.40.0020.02716.58
7.0.30.0050.02316.58
7.0.20.0060.02016.69
7.0.10.0060.02416.52
7.0.00.0050.02416.63
5.6.400.0040.01214.14
5.6.390.0040.01513.98
5.6.380.0070.01114.39
5.6.370.0070.00314.52
5.6.360.0040.00714.02
5.6.350.0030.01314.43
5.6.340.0100.00314.23
5.6.330.0040.01214.59
5.6.320.0050.00814.27
5.6.310.0000.01414.51
5.6.300.0040.01114.38
5.6.290.0100.00714.29
5.6.280.0070.03917.69
5.6.270.0090.00014.12
5.6.260.0060.02617.54
5.6.250.0080.04417.46
5.6.240.0100.04017.58
5.6.230.0000.03217.43
5.6.220.0150.01517.28
5.6.210.0030.02517.48
5.6.200.0020.03017.45
5.6.190.0030.02517.46
5.6.180.0090.01817.43
5.6.170.0070.02217.45
5.6.160.0050.03117.45
5.6.150.0040.02417.31
5.6.140.0050.02817.49
5.6.130.0080.02017.66
5.6.120.0080.03017.40
5.6.110.0070.02517.57
5.6.100.0050.02317.35
5.6.90.0040.02517.47
5.6.80.0090.01617.05
5.6.70.0070.02317.02
5.6.60.0050.02017.08
5.6.50.0090.02217.04
5.6.40.0060.02017.00
5.6.30.0050.02317.03
5.6.20.0050.02317.02
5.6.10.0040.02317.14
5.6.00.0020.02817.17
5.5.380.0080.03315.82
5.5.370.0070.04015.92
5.5.360.0040.02715.81
5.5.350.0020.03016.07
5.5.340.0100.02616.13
5.5.330.0080.01815.84
5.5.320.0040.02616.29
5.5.310.0010.02416.38
5.5.300.0030.02516.15
5.5.290.0020.02716.28
5.5.280.0070.02215.95
5.5.270.0060.02316.07
5.5.260.0050.02316.17
5.5.250.0020.02615.89
5.5.240.0050.02515.59
5.5.230.0030.02715.89
5.5.220.0030.04215.63
5.5.210.0060.02715.85
5.5.200.0020.02615.59
5.5.190.0040.02115.86
5.5.180.0030.02415.71
5.5.170.0040.00814.28
5.5.160.0060.02815.86
5.5.150.0120.01715.66
5.5.140.0050.01715.76
5.5.130.0030.02215.68
5.5.120.0040.02315.82
5.5.110.0030.02215.66
5.5.100.0090.04015.88
5.5.90.0040.02015.50
5.5.80.0090.01815.37
5.5.70.0030.04215.45
5.5.60.0060.03615.91
5.5.50.0050.04215.69
5.5.40.0130.03615.61
5.5.30.0020.04915.68
5.5.20.0030.03815.57
5.5.10.0060.04115.81
5.5.00.0100.04215.57
5.4.450.0050.02215.67
5.4.440.0010.02615.65
5.4.430.0050.02015.63
5.4.420.0050.02315.72
5.4.410.0050.02015.55
5.4.400.0030.02315.51
5.4.390.0030.02115.49
5.4.380.0030.02415.48
5.4.370.0070.02015.54
5.4.360.0020.02115.53
5.4.350.0040.02415.46
5.4.340.0030.02215.49
5.4.330.0070.00411.98
5.4.320.0080.01815.61
5.4.310.0090.01915.61
5.4.300.0040.02015.58
5.4.290.0080.01715.62
5.4.280.0060.02015.50
5.4.270.0020.02415.48
5.4.260.0050.02315.48
5.4.250.0030.03715.62
5.4.240.0000.03315.46
5.4.230.0030.01815.50
5.4.220.0030.02015.48
5.4.210.0130.03015.50
5.4.200.0100.03315.48
5.4.190.0030.03715.44
5.4.180.0110.03515.54
5.4.170.0030.02115.54
5.4.160.0040.02115.48
5.4.150.0050.04315.51
5.4.140.0050.03914.10
5.4.130.0070.03814.09
5.4.120.0100.01514.11
5.4.110.0030.04314.11
5.4.100.0050.03614.08
5.4.90.0100.03814.23
5.4.80.0070.03514.23
5.4.70.0070.03714.24
5.4.60.0040.02514.25
5.4.50.0030.02314.24
5.4.40.0050.03914.27
5.4.30.0050.02314.11
5.4.20.0020.03114.22
5.4.10.0100.03514.10
5.4.00.0030.03314.00
5.3.290.0050.02613.32
5.3.280.0020.04213.21
5.3.270.0080.03513.30
5.3.260.0070.04013.29
5.3.250.0050.03713.18
5.3.240.0070.04213.29
5.3.230.0070.03913.29
5.3.220.0080.03313.18
5.3.210.0050.02513.28
5.3.200.0080.03713.21
5.3.190.0060.03813.18
5.3.180.0030.04213.18
5.3.170.0050.04113.21
5.3.160.0020.02313.28
5.3.150.0020.03913.21
5.3.140.0050.04013.23
5.3.130.0100.03113.26
5.3.120.0030.03813.23
5.3.110.0060.02313.15
5.3.100.0050.03812.90
5.3.90.0020.02712.92
5.3.80.0020.02512.94
5.3.70.0070.03712.89
5.3.60.0050.03212.94
5.3.50.0100.03712.89
5.3.40.0100.02213.00
5.3.30.0030.03712.98
5.3.20.0030.03712.84
5.3.10.0080.03512.74
5.3.00.0090.03612.81
5.2.170.0030.06311.91
5.2.160.0030.06311.91
5.2.150.0070.06011.91
5.2.140.0130.05011.91
5.2.130.0030.05711.91
5.2.120.0130.05311.91
5.2.110.0030.06311.91
5.2.100.0070.06011.91
5.2.90.0070.05011.91
5.2.80.0000.05011.91
5.2.70.0070.06311.91
5.2.60.0100.06011.91
5.2.50.0030.04311.91
5.2.40.0000.04011.91
5.2.30.0100.05011.91
5.2.20.0030.06011.91
5.2.10.0070.03711.91
5.2.00.0030.05011.91
5.1.60.0030.03711.91
5.1.50.0030.02711.91
5.1.40.0000.02711.91
5.1.30.0070.05311.91
5.1.20.0100.05011.91
5.1.10.0070.05311.91
5.1.00.0030.05011.91
5.0.50.0030.04311.91
5.0.40.0000.03311.91
5.0.30.0030.04711.91
5.0.20.0100.03311.91
5.0.10.0030.02311.91
5.0.00.0070.05711.91
4.4.90.0030.02011.91
4.4.80.0100.02311.91
4.4.70.0070.03311.91
4.4.60.0070.02011.91
4.4.50.0000.02011.91
4.4.40.0000.05711.91
4.4.30.0000.03711.91
4.4.20.0000.02011.91
4.4.10.0000.03711.91
4.4.00.0030.02711.91
4.3.110.0070.02311.91
4.3.100.0000.02011.91
4.3.90.0000.03711.91
4.3.80.0100.02011.91
4.3.70.0030.01311.91
4.3.60.0000.01711.91
4.3.50.0000.02311.91
4.3.40.0000.03011.91
4.3.30.0000.02011.91
4.3.20.0000.02311.91
4.3.10.0030.02711.91
4.3.00.0030.01311.91

preferences:
45.67 ms | 400 KiB | 5 Q