3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 0; function toggleNumber( $num ) { return $num ^= 1; } echo toggleNumber( $num );

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.0090.00019.57
8.3.140.0050.00316.48
8.3.130.0070.00416.44
8.3.120.0060.00318.94
8.3.110.0040.00420.94
8.3.100.0110.00416.80
8.3.90.0000.00826.77
8.3.80.0030.00516.50
8.3.70.0060.00916.58
8.3.60.0120.00316.50
8.3.50.0130.00516.50
8.3.40.0110.00718.79
8.3.30.0070.00718.54
8.3.20.0150.00824.32
8.3.10.0080.01024.38
8.3.00.0140.00323.67
8.2.250.0080.00018.41
8.2.240.0030.00618.87
8.2.230.0030.00622.58
8.2.220.0110.00824.06
8.2.210.0030.00626.77
8.2.200.0060.00316.75
8.2.190.0150.00016.63
8.2.180.0180.00417.93
8.2.170.0090.00622.96
8.2.160.0030.01420.31
8.2.150.0230.00625.17
8.2.140.0080.00725.33
8.2.130.0100.01025.83
8.2.120.0080.00824.12
8.2.110.0110.00823.18
8.2.100.0170.00723.08
8.2.90.0190.00621.71
8.2.80.0160.00521.96
8.2.70.0190.00821.55
8.2.60.0150.00920.18
8.2.50.0170.00520.21
8.2.40.0140.00619.94
8.2.30.0140.00720.10
8.2.20.0160.00319.89
8.2.10.0150.00519.80
8.2.00.0130.00519.85
8.1.300.0060.00917.76
8.1.290.0080.00030.84
8.1.280.0030.01025.92
8.1.270.0090.00524.00
8.1.260.0120.00325.89
8.1.250.0100.00326.47
8.1.240.0140.00424.65
8.1.230.0150.00724.06
8.1.220.0120.00921.55
8.1.210.0140.00621.74
8.1.200.0120.00821.34
8.1.190.0150.00319.87
8.1.180.0170.00319.97
8.1.170.0140.00519.66
8.1.160.0160.00619.85
8.1.150.0150.00420.06
8.1.140.0130.00619.93
8.1.130.0140.00519.65
8.1.120.0150.00519.74
8.1.110.0120.00719.70
8.1.100.0140.00619.67
8.1.90.0140.00519.69
8.1.80.0140.00519.62
8.1.70.0140.00519.62
8.1.60.0150.00619.75
8.1.50.0160.00419.47
8.1.40.0150.00519.49
8.1.30.0180.00419.28
8.1.20.0160.00619.26
8.1.10.0180.00419.21
8.1.00.0140.00519.17
8.0.300.0100.00922.05
8.0.290.0160.00821.22
8.0.280.0130.00318.57
8.0.270.0120.00519.44
8.0.260.0150.00619.38
8.0.250.0120.00519.41
8.0.240.0140.00719.42
8.0.230.0170.00419.39
8.0.220.0130.00619.40
8.0.210.0150.00619.37
8.0.200.0130.00519.42
8.0.190.0160.00619.42
8.0.180.0150.00319.07
8.0.170.0160.00419.07
8.0.160.0130.00418.84
8.0.150.0130.00818.92
8.0.140.0140.00618.79
8.0.130.0140.00418.25
8.0.120.0140.00518.10
8.0.110.0100.00518.10
8.0.100.0120.00517.98
8.0.90.0130.00617.97
8.0.80.0120.00518.01
8.0.70.0110.00517.99
8.0.60.0130.00417.99
8.0.50.0130.00517.97
8.0.30.0110.00617.77
8.0.20.0120.00617.82
8.0.10.0140.00617.88
8.0.00.0110.00717.73
7.4.330.0100.00518.61
7.4.320.0180.00419.35
7.4.300.0150.00619.33
7.4.290.0150.00418.99
7.4.280.0170.00418.99
7.4.270.0120.00818.74
7.4.260.0160.00318.50
7.4.250.0160.00418.03
7.4.240.0130.00618.03
7.4.230.0150.00517.90
7.4.220.0150.00417.94
7.4.210.0120.00717.91
7.4.200.0130.00517.91
7.4.190.0140.00518.18
7.4.180.0150.00418.05
7.4.160.0120.00617.64
7.4.150.0150.00517.75
7.4.140.0130.00617.77
7.4.130.0140.00617.49
7.4.120.0130.00817.41
7.4.110.0140.00617.49
7.4.100.0140.00617.57
7.4.90.0130.00617.42
7.4.80.0130.00717.50
7.4.70.0130.00717.33
7.4.60.0140.00617.30
7.4.50.0150.00517.28
7.4.40.0130.00617.29
7.4.30.0140.00717.31
7.4.20.0130.00617.27
7.4.10.0130.00717.20
7.4.00.0120.00717.15
7.3.330.0150.00518.02
7.3.320.0170.00317.57
7.3.310.0160.00417.86
7.3.300.0140.00517.74
7.3.290.0110.00817.50
7.3.280.0140.00617.26
7.3.270.0130.00617.62
7.3.260.0140.00417.43
7.3.250.0130.00617.24
7.3.240.0130.00717.29
7.3.230.0140.00517.40
7.3.220.0140.00617.38
7.3.210.0130.00717.25
7.3.200.0130.00617.18
7.3.190.0150.00517.23
7.3.180.0150.00517.19
7.3.170.0140.00617.16
7.3.160.0140.00617.22
7.3.150.0140.00617.16
7.3.140.0130.00617.19
7.3.130.0140.00717.04
7.3.120.0120.00717.06
7.3.110.0130.00717.06
7.3.100.0130.00717.04
7.3.90.0120.00817.09
7.3.80.0130.00516.99
7.3.70.0130.00616.90
7.3.60.0110.00716.93
7.3.50.0130.00716.94
7.3.40.0140.00616.81
7.3.30.0130.00716.84
7.3.20.0160.00617.22
7.3.10.0150.00817.21
7.3.00.0140.00817.13
7.2.340.0140.00717.50
7.2.330.0150.00617.41
7.2.320.0160.00617.26
7.2.310.0150.00717.26
7.2.300.0140.00617.26
7.2.290.0140.00717.27
7.2.280.0140.00817.22
7.2.270.0140.00717.28
7.2.260.0140.00817.19
7.2.250.0130.00817.15
7.2.240.0120.00817.19
7.2.230.0120.00917.18
7.2.220.0130.00717.09
7.2.210.0130.00717.09
7.2.200.0150.00617.02
7.2.190.0140.00717.01
7.2.180.0140.00717.04
7.2.170.0130.00716.95
7.2.160.0130.00716.93
7.2.150.0140.00817.40
7.2.140.0160.00817.44
7.2.130.0160.00717.33
7.2.120.0140.00917.35
7.2.110.0150.00717.32
7.2.100.0160.00717.29
7.2.90.0170.00717.31
7.2.80.0170.00717.29
7.2.70.0160.00817.30
7.2.60.0250.00717.22
7.2.50.0230.00717.21
7.2.40.0290.00717.27
7.2.30.0250.00717.27
7.2.20.0220.00817.34
7.2.10.0220.00817.27
7.2.00.0190.00717.33
7.1.330.0160.00516.91
7.1.320.0150.00616.82
7.1.310.0170.00616.84
7.1.300.0140.00716.74
7.1.290.0150.00716.75
7.1.280.0150.00716.61
7.1.270.0170.00616.65
7.1.260.0160.00616.62
7.1.250.0160.00616.45
7.1.240.0160.00716.47
7.1.230.0150.00716.48
7.1.220.0150.00716.48
7.1.210.0150.00916.47
7.1.200.0170.00616.44
7.1.190.0180.00716.49
7.1.180.0150.00716.48
7.1.170.0250.00716.34
7.1.160.0230.00716.48
7.1.150.0250.00716.48
7.1.140.0220.00716.50
7.1.130.0210.00716.49
7.1.120.0220.00616.55
7.1.110.0200.00716.50
7.1.100.0200.00716.47
7.1.90.0220.00716.50
7.1.80.0200.00816.53
7.1.70.0200.00716.40
7.1.60.0220.00618.35
7.1.50.0220.00718.31
7.1.40.0240.00818.27
7.1.30.0230.00718.28
7.1.20.0200.00718.26
7.1.10.0200.00616.36
7.1.00.0190.00716.34
7.0.330.0160.00616.24
7.0.320.0160.00616.21
7.0.310.0140.00816.21
7.0.300.0230.00716.13
7.0.290.0250.00616.20
7.0.280.0150.00716.23
7.0.270.0210.00716.25
7.0.260.0220.00716.33
7.0.250.0200.00716.28
7.0.240.0190.00816.27
7.0.230.0200.00716.34
7.0.220.0220.00616.28
7.0.210.0210.00616.17
7.0.200.0210.00616.20
7.0.190.0200.00616.17
7.0.180.0240.00816.12
7.0.170.0240.00616.14
7.0.160.0190.00716.14
7.0.150.0180.00816.08
7.0.140.0200.00716.11
7.0.130.0160.00816.19
7.0.120.0170.00816.19
7.0.110.0200.00716.11
7.0.100.0240.00616.12
7.0.90.0200.00716.12
7.0.80.0200.00716.12
7.0.70.0170.00716.10
7.0.60.0170.00716.09
7.0.50.0180.00716.12
7.0.40.0230.00816.15
7.0.30.0190.00616.16
7.0.20.0190.00616.12
7.0.10.0170.00816.15
7.0.00.0170.00816.13
5.6.400.0130.01316.50
5.6.390.0130.01116.49
5.6.380.0130.01216.44
5.6.370.0130.01316.80
5.6.360.0130.01316.79
5.6.350.0160.00916.80
5.6.340.0120.01316.83
5.6.330.0130.01316.82
5.6.320.0140.01216.80
5.6.310.0120.01416.79
5.6.300.0140.01216.71
5.6.290.0140.01316.82
5.6.280.0150.01216.80
5.6.270.0110.01516.79
5.6.260.0150.01216.81
5.6.250.0150.01016.78
5.6.240.0140.01116.79
5.6.230.0150.01416.79
5.6.220.0160.01116.84
5.6.210.0140.01316.82
5.6.200.0140.01316.85
5.6.190.0140.01216.85
5.6.180.0140.01216.79
5.6.170.0150.01316.82
5.6.160.0140.01316.81
5.6.150.0130.01416.79
5.6.140.0120.01416.79
5.6.130.0140.01216.83
5.6.120.0140.01016.75
5.6.110.0140.01316.76
5.6.100.0120.01416.75
5.6.90.0140.01316.78
5.6.80.0120.01416.76
5.6.70.0110.01416.84
5.6.60.0130.01016.81
5.6.50.0120.01216.81
5.6.40.0120.01316.80
5.6.30.0110.01316.76
5.6.20.0130.01116.78
5.6.10.0120.01516.80
5.6.00.0150.01116.77

preferences:
36.49 ms | 403 KiB | 5 Q