3v4l.org

run code in 300+ PHP versions simultaneously
<?php $toto = true; for($i=0; $i<= 1000000; $i++){ if($toto == true){ $toto = true; } }

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.40.0070.01818.79
8.3.30.0100.01718.63
8.3.20.0000.01420.36
8.3.10.0040.01120.74
8.3.00.0030.01020.94
8.2.170.0100.01622.96
8.2.160.0130.01319.10
8.2.150.0070.00724.18
8.2.140.0030.01024.66
8.2.130.0000.01419.83
8.2.120.0040.01126.35
8.2.110.0090.01322.20
8.2.100.0070.01117.91
8.2.90.0000.01519.05
8.2.80.0070.00717.97
8.2.70.0060.00917.50
8.2.60.0030.01017.93
8.2.50.0040.01118.10
8.2.40.0000.01420.43
8.2.30.0030.01019.13
8.2.20.0030.01018.11
8.2.10.0000.01318.16
8.2.00.0000.01418.10
8.1.270.0070.00723.89
8.1.260.0070.00726.35
8.1.250.0030.01028.09
8.1.240.0040.01821.09
8.1.230.0070.01019.22
8.1.220.0080.00617.74
8.1.210.0040.01118.77
8.1.200.0080.00817.35
8.1.190.0000.01417.23
8.1.180.0030.01018.10
8.1.170.0040.01118.49
8.1.160.0000.01419.02
8.1.150.0040.01118.95
8.1.140.0060.00919.62
8.1.130.0030.01018.88
8.1.120.0070.00717.47
8.1.110.0000.01317.40
8.1.100.0000.01517.45
8.1.90.0030.01017.36
8.1.80.0000.01317.40
8.1.70.0000.01317.35
8.1.60.0040.01817.59
8.1.50.0030.01817.48
8.1.40.0060.01517.45
8.1.30.0030.02017.68
8.1.20.0060.01517.69
8.1.10.0030.01917.48
8.1.00.0060.01617.42
8.0.300.0030.01218.77
8.0.290.0060.01016.75
8.0.280.0040.01118.40
8.0.270.0070.00717.12
8.0.260.0000.01318.84
8.0.250.0000.01416.96
8.0.240.0000.01317.02
8.0.230.0060.01116.86
8.0.220.0030.01216.82
8.0.210.0040.01116.88
8.0.200.0060.00916.95
8.0.190.0030.01816.83
8.0.180.0000.02116.91
8.0.170.0000.02116.84
8.0.160.0000.02116.89
8.0.150.0030.01916.89
8.0.140.0000.02116.86
8.0.130.0040.01513.32
8.0.120.0040.01916.85
8.0.110.0030.01716.88
8.0.100.0030.01716.92
8.0.90.0070.01716.77
8.0.80.0140.02416.77
8.0.70.0000.02116.91
8.0.60.0000.02116.83
8.0.50.0030.01716.94
8.0.30.0080.02316.97
8.0.20.0090.02817.40
8.0.10.0060.01517.01
8.0.00.0070.02216.71
7.4.330.0060.00915.55
7.4.320.0000.01416.57
7.4.300.0070.00716.35
7.4.290.0000.02316.57
7.4.280.0030.02016.52
7.4.270.0040.01816.41
7.4.260.0030.02016.47
7.4.250.0060.01616.55
7.4.240.0060.01616.48
7.4.230.0060.01516.31
7.4.220.0100.02816.45
7.4.210.0070.02516.58
7.4.200.0040.01816.63
7.4.160.0070.02516.38
7.4.150.0060.02817.40
7.4.140.0110.02317.86
7.4.130.0090.02516.36
7.4.120.0100.02616.44
7.4.110.0130.03316.61
7.4.100.0190.01916.47
7.4.90.0040.02916.43
7.4.80.0120.02219.39
7.4.70.0060.03816.41
7.4.60.0170.02716.44
7.4.50.0100.02016.64
7.4.40.0200.02416.36
7.4.30.0130.03116.48
7.4.10.0130.02314.72
7.4.00.0070.02614.93
7.3.330.0000.02213.30
7.3.320.0000.02313.25
7.3.310.0060.01916.44
7.3.300.0000.02316.23
7.3.290.0000.02416.32
7.3.280.0100.02816.32
7.3.270.0100.04217.40
7.3.260.0090.03716.35
7.3.250.0120.03116.49
7.3.240.0130.02816.49
7.3.230.0060.03416.33
7.3.210.0100.02816.34
7.3.200.0080.03216.14
7.3.190.0070.03116.57
7.3.180.0000.03716.31
7.3.170.0060.02916.63
7.3.160.0120.02516.28
7.3.130.0110.02714.69
7.3.120.0100.02914.78
7.3.110.0100.02414.71
7.3.100.0060.02514.59
7.3.90.0030.02914.80
7.3.80.0070.02014.81
7.3.70.0100.02314.81
7.3.60.0100.02114.75
7.3.50.0000.02414.54
7.3.40.0030.02414.71
7.3.30.0030.02414.65
7.3.20.0070.02316.73
7.3.10.0030.02416.54
7.3.00.0100.01816.49
7.2.330.0030.03716.72
7.2.320.0090.02916.43
7.2.310.0090.04316.65
7.2.300.0090.03116.64
7.2.290.0090.02816.45
7.2.260.0100.03015.17
7.2.250.0070.03315.20
7.2.240.0000.02515.30
7.2.230.0130.02614.82
7.2.220.0030.03015.17
7.2.210.0070.02215.21
7.2.200.0030.02815.14
7.2.190.0030.02515.10
7.2.180.0030.03114.88
7.2.170.0090.01814.89
7.2.160.0030.02314.89
7.2.150.0120.01816.73
7.2.140.0060.02216.63
7.2.130.0050.02716.64
7.2.120.0070.02716.54
7.2.110.0060.02116.63
7.2.100.0120.02316.78
7.2.90.0050.02716.86
7.2.80.0070.02416.74
7.2.70.0020.02616.87
7.2.60.0030.02716.81
7.2.50.0030.03016.93
7.2.40.0070.02716.90
7.2.30.0050.02316.84
7.2.20.0080.02216.60
7.2.10.0080.02316.69
7.2.00.0080.02216.77
7.1.330.0000.07315.82
7.1.320.0030.06515.74
7.1.310.0030.06515.64
7.1.300.0000.06015.78
7.1.290.0070.07415.81
7.1.280.0100.06515.85
7.1.270.0070.05915.48
7.1.260.0070.05815.57
7.1.250.0080.05915.67
7.1.240.0030.06815.80
7.1.230.0000.08515.71
7.1.220.0000.06715.86
7.1.210.0000.06115.48
7.1.200.0050.04415.65
7.1.190.0070.06515.70
7.1.180.0030.06715.75
7.1.170.0070.06615.54
7.1.160.0060.07215.71
7.1.150.0000.06515.70
7.1.140.0030.07315.69
7.1.130.0030.07215.56
7.1.120.0070.05415.55
7.1.110.0000.07216.04
7.1.100.0000.08015.87
7.1.90.0070.06515.82
7.1.80.0030.06115.63
7.1.70.0070.05116.48
7.1.60.0240.04825.48
7.1.50.0210.05025.21
7.1.40.0130.06525.17
7.1.30.0130.05225.01
7.1.20.0110.05625.17
7.1.10.0100.04516.16
7.1.00.0050.05216.19
7.0.330.0000.06115.56
7.0.320.0030.06215.48
7.0.310.0000.05815.23
7.0.300.0030.06215.35
7.0.290.0000.05915.18
7.0.280.0000.06415.17
7.0.270.0030.06115.27
7.0.260.0030.07715.18
7.0.250.0100.05615.47
7.0.240.0030.07015.64
7.0.230.0070.05915.44
7.0.220.0030.06515.23
7.0.210.0100.05915.45
7.0.200.0040.05416.07
7.0.190.0050.05116.00
7.0.180.0050.06115.95
7.0.170.0070.04915.96
7.0.160.0060.04915.84
7.0.150.0060.04815.96
7.0.140.0070.05215.82
7.0.130.0070.04416.15
7.0.120.0050.05615.95
7.0.110.0030.04715.90
7.0.100.0050.05015.84
7.0.90.0100.04616.02
7.0.80.0030.05115.96
7.0.70.0060.05915.80
7.0.60.0050.05215.72
7.0.50.0050.05515.86
7.0.40.0050.06114.85
7.0.30.0100.04715.01
7.0.20.0080.04814.98
7.0.10.0100.04715.02
7.0.00.0070.05414.90
5.6.400.0030.14614.45
5.6.390.0000.15114.48
5.6.380.0100.13914.28
5.6.370.0070.14614.52
5.6.360.0030.14514.10
5.6.350.0070.14414.29
5.6.340.0100.13714.34
5.6.330.0070.14814.53
5.6.320.0030.14914.39
5.6.310.0070.14514.04
5.6.300.0070.15214.23
5.6.290.0030.14014.22
5.6.280.0070.14914.08
5.6.270.0030.14914.39
5.6.260.0030.15414.37
5.6.250.0070.13514.36
5.6.240.0030.13614.49
5.6.230.0070.14014.32
5.6.220.0100.15614.09
5.6.210.0000.15314.09
5.6.200.0030.14914.11
5.6.190.0030.14214.38
5.6.180.0030.15314.26
5.6.170.0070.13114.07
5.6.160.0030.16214.23
5.6.150.0000.14114.09
5.6.140.0030.15014.44
5.6.130.0000.15214.30
5.6.120.0030.16414.23
5.6.110.0070.16914.28
5.6.100.0030.16214.37
5.6.90.0000.14214.42
5.6.80.0030.14114.36
5.6.70.0030.14414.18
5.6.60.0030.15814.09
5.6.50.0070.14514.17
5.6.40.0030.13714.18
5.6.30.0070.13613.90
5.6.20.0130.12413.98
5.6.10.0070.13813.95
5.6.00.0000.15214.49

preferences:
53.08 ms | 400 KiB | 5 Q