3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 11; $bar = 12; //optimal: memory used once $foo = $foo ^ $bar; $bar = $foo ^ $bar; $foo = $foo ^ $bar; var_dump($foo, $bar); echo memory_get_peak_usage(); $foo = 11; $bar = 12; //readable: $baz = $foo; $foo = $bar; $bar = $baz; // var_dump($foo, $bar); echo memory_get_peak_usage();

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.30.0130.00719.08
8.3.20.0070.00020.35
8.3.10.0080.00023.66
8.3.00.0040.00420.46
8.2.160.0100.00322.17
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.21
8.2.110.0000.01022.31
8.2.100.0040.00817.84
8.2.90.0080.00017.63
8.2.80.0030.00517.97
8.2.70.0060.00317.89
8.2.60.0030.00518.02
8.2.50.0040.00417.63
8.2.40.0000.00819.35
8.2.30.0040.00417.56
8.2.20.0000.00817.65
8.2.10.0040.00417.80
8.2.00.0050.00317.72
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00322.17
8.1.230.0060.00620.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0050.00317.13
8.1.180.0050.00318.10
8.1.170.0000.00718.90
8.1.160.0000.00718.82
8.1.150.0000.00718.61
8.1.140.0000.00717.38
8.1.130.0030.00317.87
8.1.120.0000.00717.39
8.1.110.0040.00417.43
8.1.100.0030.00317.32
8.1.90.0000.00717.40
8.1.80.0000.00717.30
8.1.70.0000.00717.29
8.1.60.0060.00317.49
8.1.50.0080.00017.34
8.1.40.0070.00017.48
8.1.30.0000.00817.41
8.1.20.0040.00417.50
8.1.10.0000.00817.51
8.1.00.0000.00717.45
8.0.300.0070.00019.65
8.0.290.0060.00316.63
8.0.280.0050.00218.00
8.0.270.0070.00017.95
8.0.260.0070.00016.68
8.0.250.0000.00716.99
8.0.240.0030.00616.88
8.0.230.0000.00716.95
8.0.220.0040.00416.87
8.0.210.0000.00716.79
8.0.200.0000.00816.87
8.0.190.0040.00416.90
8.0.180.0040.00416.75
8.0.170.0000.00816.81
8.0.160.0050.00316.73
8.0.150.0040.00416.63
8.0.140.0030.00316.71
8.0.130.0000.00613.23
8.0.120.0080.00016.83
8.0.110.0040.00416.71
8.0.100.0000.00816.77
8.0.90.0000.00816.73
8.0.80.0110.00716.82
8.0.70.0030.00616.86
8.0.60.0040.00416.71
8.0.50.0040.00416.84
8.0.30.0070.01117.09
8.0.20.0140.01217.40
8.0.10.0050.00216.77
8.0.00.0130.00616.77
7.4.330.0000.00515.01
7.4.320.0000.00616.45
7.4.300.0030.00316.29
7.4.290.0000.00716.55
7.4.280.0000.00616.56
7.4.270.0000.00816.34
7.4.260.0030.00316.44
7.4.250.0070.00016.54
7.4.240.0030.00316.52
7.4.230.0000.00716.34
7.4.220.0070.01216.61
7.4.210.0050.00916.50
7.4.200.0030.00516.54
7.4.190.0040.00216.39
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0090.01116.54
7.4.120.0100.00816.45
7.4.110.0100.00716.29
7.4.100.0080.01116.53
7.4.90.0150.00316.36
7.4.80.0090.00916.48
7.4.70.0100.00616.52
7.4.60.0080.00816.59
7.4.50.0050.00016.38
7.4.40.0090.00622.77
7.4.30.0080.00816.30
7.4.00.0070.01014.92
7.3.330.0050.00013.23
7.3.320.0050.00013.10
7.3.310.0000.00716.26
7.3.300.0000.00716.16
7.3.290.0120.00416.23
7.3.280.0100.00916.23
7.3.270.0130.00317.40
7.3.260.0150.00616.52
7.3.250.0140.00616.33
7.3.240.0130.00716.47
7.3.230.0160.00016.39
7.3.210.0110.00716.46
7.3.200.0090.00919.39
7.3.190.0120.00816.46
7.3.180.0160.00316.18
7.3.170.0090.00616.51
7.3.160.0000.02316.48
7.3.120.0070.00714.97
7.3.00.0110.00716.52
7.2.330.0110.00616.65
7.2.320.0140.00816.61
7.2.310.0110.00516.35
7.2.300.0120.00916.58
7.2.290.0100.00616.76
7.2.130.0100.00316.53
7.2.120.0100.00316.57
7.2.110.0070.00716.54
7.2.100.0120.00316.36
7.2.90.0170.00716.60
7.2.80.0110.01116.75
7.2.70.0110.00516.81
7.2.60.0040.01316.93
7.2.50.0110.00816.89
7.2.40.0130.00616.80
7.2.30.0120.01116.90
7.2.20.0110.01116.82
7.2.10.0170.00316.85
7.2.00.0030.01318.02
7.1.250.0030.01015.81
7.1.240.0140.00015.44
7.1.230.0140.00015.60
7.1.220.0090.00615.67
7.1.210.0110.00615.70
7.1.200.0060.01115.65
7.1.190.0060.01315.69
7.1.180.0080.00815.52
7.1.170.0070.01015.68
7.1.160.0130.01015.72
7.1.150.0190.00215.54
7.1.140.0100.00315.39
7.1.130.0080.00515.68
7.1.120.0070.00715.75
7.1.110.0090.00615.64
7.1.100.0100.00616.71
7.1.90.0110.00415.43
7.1.80.0080.00815.75
7.1.70.0030.00716.37
7.1.60.0080.01317.49
7.1.50.0050.01016.38
7.1.40.0130.00315.61
7.1.30.0040.01115.69
7.1.20.0070.01515.70
7.1.10.0090.01315.63
7.1.00.0080.04118.92
7.0.330.0110.00414.95
7.0.320.0080.00415.35
7.0.310.0080.00815.23
7.0.300.0100.00515.32
7.0.290.0090.00415.00
7.0.280.0130.00315.34
7.0.270.0100.00315.22
7.0.260.0060.00615.30
7.0.250.0100.00315.08
7.0.240.0040.01115.01
7.0.230.0090.00615.21
7.0.220.0090.00615.18
7.0.210.0070.00715.31
7.0.200.0080.00616.00
7.0.190.0080.00815.11
7.0.180.0070.01014.98
7.0.170.0080.00415.40
7.0.160.0070.00715.18
7.0.150.0130.00915.10
7.0.140.0100.03518.74
7.0.130.0090.00615.36
7.0.120.0090.01115.11
7.0.110.0070.01015.11
7.0.100.0100.00015.11
7.0.90.0030.00715.38
7.0.80.0090.00315.26
7.0.70.0110.00415.11
7.0.60.0100.04418.41
7.0.50.0080.02516.64
7.0.40.0100.04516.78
7.0.30.0170.04316.83
7.0.20.0260.03816.60
7.0.10.0140.03916.68
7.0.00.0070.02116.72
5.6.380.0040.00413.85
5.6.370.0110.00314.05
5.6.360.0000.01214.39
5.6.350.0060.00314.06
5.6.340.0140.00314.14
5.6.330.0070.00714.11
5.6.320.0110.00414.35
5.6.310.0070.01213.84
5.6.300.0090.01114.10
5.6.290.0000.01514.31
5.6.280.0030.04017.57
5.6.270.0070.00414.25
5.6.260.0030.00714.30
5.6.250.0060.00614.26
5.6.240.0030.00714.41
5.6.230.0030.01014.06
5.6.220.0040.00414.13
5.6.210.0130.03117.31
5.6.200.0090.04216.06
5.6.190.0060.04317.28
5.6.180.0280.03517.43
5.6.170.0170.04217.27
5.6.160.0080.04417.39
5.6.150.0050.02916.03
5.6.140.0020.04216.15
5.6.130.0050.04116.15
5.6.120.0040.02517.60
5.6.110.0070.04417.52
5.6.100.0080.02917.47
5.6.90.0090.03517.60
5.6.80.0050.03017.38
5.6.70.0000.01313.94
5.6.60.0030.00614.08
5.6.50.0040.00714.02
5.6.40.0000.01314.00
5.6.30.0000.01413.89
5.6.20.0040.00714.04
5.6.10.0070.00713.65
5.6.00.0030.00614.03
5.5.380.0080.00310.62
5.5.370.0030.00310.53
5.5.360.0050.00210.82
5.5.350.0150.04015.44
5.5.340.0070.03714.40
5.5.330.0050.02315.35
5.5.320.0370.03215.58
5.5.310.0210.02215.44
5.5.300.0030.04314.30
5.5.290.0030.02614.27
5.5.280.0040.03215.70
5.5.270.0050.04715.85
5.5.260.0140.03915.78
5.5.250.0070.04215.79
5.5.240.0120.03515.64
5.5.230.0060.00010.99
5.5.220.0060.00310.79
5.5.210.0060.00010.49
5.5.200.0030.00610.50
5.5.190.0070.00010.62
5.5.180.0030.00310.56
5.5.170.0030.00710.86
5.5.160.0000.00510.71
5.5.150.0030.00310.71
5.5.140.0040.00810.81
5.5.130.0080.00410.78
5.5.120.0000.00810.97
5.5.110.0030.00310.80
5.5.100.0070.00410.83
5.5.90.0000.01011.08
5.5.80.0060.00610.99
5.5.70.0030.00610.95
5.5.60.0000.00610.59
5.5.50.0110.00010.72
5.5.40.0030.00810.63
5.5.30.0030.00710.85
5.5.20.0060.00610.51
5.5.10.0070.00310.59
5.5.00.0000.01010.56
5.4.450.1020.02614.95
5.4.440.1000.02115.17
5.4.430.1500.02115.19
5.4.420.1990.01915.20
5.4.410.1850.02115.20
5.4.400.1970.01814.78
5.4.390.1870.02014.89
5.4.380.2160.02314.68
5.4.370.2070.01814.96
5.4.360.1850.02214.89
5.4.350.1860.02114.75
5.4.340.1880.02514.95
5.4.330.0000.00610.62
5.4.320.1920.02614.85
5.4.310.1870.02014.82
5.4.300.2000.02114.94
5.4.290.1920.02515.02
5.4.280.2000.02014.92
5.4.270.1970.02214.91
5.4.260.2060.01914.92
5.4.250.1910.01914.97
5.4.240.2040.01715.00
5.4.230.1880.01714.98
5.4.220.1950.02514.71
5.4.210.1980.01814.88
5.4.200.0050.02214.95
5.4.190.2350.02314.69
5.4.180.1850.02214.88
5.4.170.2000.02314.82
5.4.160.1980.02115.00
5.4.150.1860.01914.83
5.4.140.1880.02213.56
5.4.130.1810.02113.68
5.4.120.2030.02013.61
5.4.110.1830.02113.70
5.4.100.0080.02213.54
5.4.90.0060.03713.36
5.4.80.2400.01713.30
5.4.70.2370.02013.56
5.4.60.1920.01913.59
5.4.50.2000.01913.45
5.4.40.1850.02213.54
5.4.30.1880.01813.63
5.4.20.2100.02213.35
5.4.10.1850.02213.45
5.4.00.1850.02313.25
5.3.290.1820.02612.62
5.3.280.2020.02012.49
5.3.270.2000.02112.51
5.3.260.2010.01512.50
5.3.250.1970.02212.54
5.3.240.1920.02012.51
5.3.230.2020.01612.51
5.3.220.2080.01812.50
5.3.210.2300.01812.57
5.3.200.0030.02012.43
5.3.190.1530.02512.49
5.3.180.2410.01712.49
5.3.170.2200.02112.54
5.3.160.1900.02512.51
5.3.150.1970.02212.44
5.3.140.1650.01812.46
5.3.130.2020.01812.49
5.3.120.1970.02512.52
5.3.110.1960.02012.50
5.3.100.1830.02112.20
5.3.90.2150.02312.26
5.3.80.2220.02012.21
5.3.70.1910.01312.21
5.3.60.1920.02212.22
5.3.50.2550.01712.14
5.3.40.1270.02312.19
5.3.30.1480.02312.11
5.3.20.2050.01812.05
5.3.10.1880.02012.08
5.3.00.1780.02812.05
5.2.170.0530.01510.79
5.2.160.0700.01310.81
5.2.150.1070.01810.80
5.2.140.1300.01810.78
5.2.130.1520.01910.84
5.2.120.1560.01610.87
5.2.110.1470.01710.76
5.2.100.1400.01610.84
5.2.90.1420.01810.76
5.2.80.1500.01310.79
5.2.70.1530.01510.78
5.2.60.1810.02010.76
5.2.50.1250.02010.66
5.2.40.0630.01510.81
5.2.30.0560.01510.69
5.2.20.0880.02010.63
5.2.10.1310.01610.68
5.2.00.1270.01310.60
5.1.60.1350.01510.22
5.1.50.1230.01510.24
5.1.40.1370.01410.18
5.1.30.1280.01210.34
5.1.20.1230.01610.44
5.1.10.1370.01810.26
5.1.00.1200.01710.25
5.0.50.0720.0129.54
5.0.40.0600.0139.46
5.0.30.0680.0179.43
5.0.20.0700.0169.41
5.0.10.0700.0159.35
5.0.00.0700.0179.35
4.4.90.0620.0108.34
4.4.80.0620.0078.34
4.4.70.0430.0098.34
4.4.60.0670.0078.34
4.4.50.0710.0118.34
4.4.40.0760.0168.34
4.4.30.0370.0128.34
4.4.20.0670.0088.34
4.4.10.0620.0098.34
4.4.00.0620.0168.34
4.3.110.0610.0118.34
4.3.100.0660.0088.34
4.3.90.0700.0098.34
4.3.80.0760.0138.34
4.3.70.0760.0088.34
4.3.60.0600.0118.34
4.3.50.0640.0088.34
4.3.40.0660.0138.35
4.3.30.0320.0108.35
4.3.20.0350.0118.35
4.3.10.0310.0098.35
4.3.00.0320.0098.36

preferences:
30.73 ms | 401 KiB | 5 Q