3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &pre_inc(&$a) { return ++$a; } $a = 5; $b = &$a; $c = &pre_inc($a); $d = $b++; echo $c.$d;

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.0100.01017.66
8.3.140.0070.01017.11
8.3.130.0060.00616.78
8.3.120.0060.00320.68
8.3.110.0060.00320.94
8.3.100.0030.00518.79
8.3.90.0110.00426.77
8.3.80.0000.00918.55
8.3.70.0160.00616.58
8.3.60.0100.01016.88
8.3.50.0070.01121.93
8.3.40.0000.01418.98
8.3.30.0100.00319.09
8.3.20.0000.00720.25
8.3.10.0040.00423.57
8.3.00.0070.00020.71
8.2.250.0030.00518.92
8.2.240.0040.00417.24
8.2.230.0090.00322.58
8.2.220.0030.00737.54
8.2.210.0030.00626.77
8.2.200.0030.00616.63
8.2.190.0110.00316.58
8.2.180.0120.01518.41
8.2.170.0140.00319.07
8.2.160.0090.00622.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00020.86
8.2.110.0030.00721.09
8.2.100.0060.00617.75
8.2.90.0040.00417.97
8.2.80.0060.00319.16
8.2.70.0000.00917.50
8.2.60.0000.00917.38
8.2.50.0000.00817.55
8.2.40.0030.00619.89
8.2.30.0000.00718.13
8.2.20.0000.00717.71
8.2.10.0050.00319.59
8.2.00.0000.00817.74
8.1.300.0080.00318.34
8.1.290.0050.00530.84
8.1.280.0110.00425.92
8.1.270.0080.00023.81
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0090.00019.65
8.1.230.0100.00020.85
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0040.00417.48
8.1.190.0040.00417.36
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0040.00421.95
8.1.150.0060.00318.42
8.1.140.0040.00417.37
8.1.130.0030.00317.72
8.1.120.0040.00417.30
8.1.110.0070.00017.26
8.1.100.0060.00317.29
8.1.90.0070.00017.29
8.1.80.0000.00717.39
8.1.70.0000.00717.38
8.1.60.0050.00317.47
8.1.50.0030.00517.47
8.1.40.0070.00017.47
8.1.30.0030.00517.64
8.1.20.0000.00817.64
8.1.10.0000.00917.54
8.1.00.0050.00217.41
8.0.300.0000.00720.16
8.0.290.0000.00916.63
8.0.280.0000.00818.35
8.0.270.0040.00417.16
8.0.260.0000.00717.26
8.0.250.0030.00317.03
8.0.240.0050.00317.04
8.0.230.0030.00317.02
8.0.220.0000.00716.82
8.0.210.0000.00716.82
8.0.200.0000.00617.01
8.0.190.0000.00817.05
8.0.180.0000.00716.98
8.0.170.0040.00417.00
8.0.160.0030.00616.87
8.0.150.0040.00416.87
8.0.140.0000.00716.80
8.0.130.0000.00513.42
8.0.120.0000.00816.82
8.0.110.0040.00416.97
8.0.100.0000.00716.77
8.0.90.0040.00416.97
8.0.80.0070.01016.84
8.0.70.0070.00016.91
8.0.60.0000.00716.96
8.0.50.0040.00416.88
8.0.30.0120.00617.00
8.0.20.0110.00817.40
8.0.10.0000.00716.93
8.0.00.0080.00916.69
7.4.330.0050.00015.00
7.4.320.0060.00016.57
7.4.300.0030.00316.53
7.4.290.0000.00816.44
7.4.280.0000.01016.41
7.4.270.0050.00216.49
7.4.260.0040.00416.57
7.4.250.0050.00316.36
7.4.240.0000.00716.57
7.4.230.0040.00416.29
7.4.220.0030.01416.56
7.4.210.0090.00716.52
7.4.200.0030.00316.62
7.4.190.0070.00016.46
7.4.160.0110.01116.49
7.4.150.0070.01017.40
7.4.140.0090.01017.86
7.4.130.0130.00516.68
7.4.120.0120.00916.42
7.4.110.0140.01016.46
7.4.100.0100.00916.51
7.4.90.0150.00916.44
7.4.80.0090.01516.41
7.4.70.0120.00616.68
7.4.60.0070.01016.25
7.4.50.0040.00016.34
7.4.40.0060.00922.77
7.4.30.0100.01016.65
7.4.10.0100.01014.71
7.4.00.0050.01014.77
7.3.330.0050.00013.35
7.3.320.0000.00513.38
7.3.310.0050.00316.41
7.3.300.0030.00316.27
7.3.290.0110.00316.37
7.3.280.0110.00716.37
7.3.270.0120.00617.40
7.3.260.0120.00616.69
7.3.250.0120.00616.52
7.3.240.0060.01616.39
7.3.230.0060.01016.58
7.3.210.0060.00916.60
7.3.200.0060.01219.39
7.3.190.0070.01116.47
7.3.180.0120.00316.53
7.3.170.0100.01316.41
7.3.160.0120.00316.44
7.3.130.0070.01314.37
7.3.120.0050.01215.61
7.3.110.0070.01015.62
7.3.100.0040.00915.41
7.3.90.0030.01015.58
7.3.80.0070.00915.54
7.3.70.0070.00615.48
7.3.60.0050.01015.54
7.3.50.0060.00815.64
7.3.40.0060.00815.61
7.3.30.0070.00615.41
7.3.20.0070.00816.74
7.3.10.0050.01016.72
7.3.00.0070.00716.84
7.2.330.0100.00716.68
7.2.320.0160.00716.34
7.2.310.0120.00616.54
7.2.300.0030.01416.57
7.2.290.0060.00916.59
7.2.260.0100.00315.07
7.2.250.0100.00715.00
7.2.240.0060.01015.63
7.2.230.0030.01215.57
7.2.220.0030.01315.66
7.2.210.0060.00715.70
7.2.200.0050.00815.58
7.2.190.0090.00915.65
7.2.180.0040.01115.52
7.2.170.0060.00815.65
7.2.160.0050.00915.97
7.2.150.0060.00816.85
7.2.140.0050.01116.89
7.2.130.0050.01216.96
7.2.120.0090.00516.92
7.2.110.0140.00516.74
7.2.100.0050.00616.97
7.2.90.0070.00616.97
7.2.80.0070.00716.94
7.2.70.0090.00516.79
7.2.60.0040.00916.95
7.2.50.0050.00716.77
7.2.40.0040.01016.75
7.2.30.0070.00616.90
7.2.20.0070.00916.86
7.2.10.0030.00917.04
7.2.00.0050.01217.08
7.1.330.0060.00716.13
7.1.320.0020.01216.15
7.1.310.0050.00716.21
7.1.300.0080.00516.14
7.1.290.0060.00716.13
7.1.280.0020.01016.17
7.1.270.0060.00815.98
7.1.260.0070.00816.11
7.1.250.0030.01216.43
7.1.240.0070.00715.59
7.1.230.0030.00915.57
7.1.220.0030.01015.27
7.1.210.0110.00315.52
7.1.200.0020.00915.53
7.1.190.0070.00715.26
7.1.180.0060.00615.47
7.1.170.0000.01315.51
7.1.160.0080.00815.56
7.1.150.0030.01015.16
7.1.140.0110.00415.32
7.1.130.0040.00715.54
7.1.120.0070.00715.71
7.1.110.0000.01215.72
7.1.100.0130.00315.78
7.1.90.0030.01015.43
7.1.80.0040.00715.47
7.1.70.0030.00616.26
7.1.60.0050.01317.46
7.1.50.0080.00516.14
7.1.40.0090.00615.68
7.1.30.0120.00015.68
7.1.20.0040.00815.65
7.1.10.0080.00315.46
7.1.00.0030.04419.01
7.0.330.0030.01315.32
7.0.320.0040.00715.30
7.0.310.0030.00615.15
7.0.300.0060.00615.04
7.0.290.0040.00815.27
7.0.280.0050.00915.23
7.0.270.0060.00615.02
7.0.260.0090.00315.36
7.0.250.0030.00615.16
7.0.240.0110.00015.24
7.0.230.0000.01115.15
7.0.220.0060.00615.34
7.0.210.0000.01515.19
7.0.200.0080.00516.02
7.0.190.0070.00715.12
7.0.180.0040.00915.11
7.0.170.0110.00715.36
7.0.160.0030.01015.32
7.0.150.0110.00415.05
7.0.140.0060.05118.75
7.0.130.0030.01015.31
7.0.120.0030.00915.31
7.0.110.0000.01315.43
7.0.100.0020.02717.57
7.0.90.0100.02017.68
7.0.80.0080.02717.54
7.0.70.0040.02417.70
7.0.60.0070.04317.61
7.0.50.0070.04117.65
7.0.40.0050.04116.65
7.0.30.0050.04416.66
7.0.20.0020.03216.64
7.0.10.0090.04116.71
7.0.00.0030.03216.79
5.6.400.0060.00314.56
5.6.390.0070.00314.32
5.6.380.0040.01114.39
5.6.370.0030.01014.02
5.6.360.0070.00414.04
5.6.350.0040.00414.38
5.6.340.0070.00714.60
5.6.330.0040.00814.18
5.6.320.0120.00314.26
5.6.310.0100.00314.46
5.6.300.0100.01014.29
5.6.290.0070.01414.41
5.6.280.0020.04217.66
5.6.270.0080.00314.12
5.6.260.0120.00614.24
5.6.250.0050.02417.38
5.6.240.0070.02217.44
5.6.230.0030.02717.29
5.6.220.0070.02217.48
5.6.210.0020.02417.37
5.6.200.0030.05017.69
5.6.190.0060.03817.70
5.6.180.0050.05017.72
5.6.170.0040.04817.74
5.6.160.0080.04417.52
5.6.150.0060.04217.41
5.6.140.0050.04617.56
5.6.130.0090.03317.69
5.6.120.0080.04017.86
5.6.110.0050.04817.57
5.6.100.0120.03717.64
5.6.90.0090.04017.54
5.6.80.0050.04417.24
5.6.70.0040.04417.25
5.6.60.0070.04317.22
5.6.50.0040.04617.35
5.6.40.0020.02917.28
5.6.30.0100.04217.12
5.6.20.0120.03017.26
5.6.10.0120.03817.23
5.6.00.0000.04817.31
5.5.380.0070.02017.39
5.5.370.0030.02517.35
5.5.360.0000.03517.32
5.5.350.0070.02717.25
5.5.340.0020.05017.41
5.5.330.0060.04317.56
5.5.320.0070.04517.42
5.5.310.0090.03917.39
5.5.300.0040.03117.44
5.5.290.0130.04017.42
5.5.280.0070.04317.33
5.5.270.0120.03717.47
5.5.260.0060.04517.37
5.5.250.0030.04317.38
5.5.240.0000.04417.26
5.5.230.0050.04717.03
5.5.220.0110.03817.08
5.5.210.0060.04117.07
5.5.200.0080.03817.00
5.5.190.0050.03717.28
5.5.180.0070.03316.98
5.5.170.0060.00614.23
5.5.160.0020.03817.05
5.5.150.0050.03917.27
5.5.140.0050.04217.15
5.5.130.0120.03817.21
5.5.120.0090.02016.95
5.5.110.0080.04217.30
5.5.100.0080.03316.84
5.5.90.0080.04317.04
5.5.80.0060.04217.12
5.5.70.0070.04117.05
5.5.60.0060.04117.05
5.5.50.0120.03817.08
5.5.40.0070.03817.18
5.5.30.0050.04117.11
5.5.20.0100.04017.13
5.5.10.0030.04817.21
5.5.00.0090.04117.11
5.4.450.0030.04615.29
5.4.440.0020.04315.27
5.4.430.0040.04415.26
5.4.420.0060.02615.27
5.4.410.0060.03915.24
5.4.400.0070.04015.09
5.4.390.0020.04015.04
5.4.380.0050.04014.97
5.4.370.0050.03814.99
5.4.360.0020.04015.01
5.4.350.0080.03915.07
5.4.340.0030.03015.18
5.4.330.0080.00411.05
5.4.320.0020.04115.10
5.4.310.0020.04215.16
5.4.300.0060.03915.02
5.4.290.0060.03915.10
5.4.280.0080.03715.14
5.4.270.0070.03815.10
5.4.260.0050.04015.13
5.4.250.0040.04015.01
5.4.240.0030.04315.09
5.4.230.0050.02715.14
5.4.220.0050.04315.04
5.4.210.0080.03015.16
5.4.200.0070.04015.11
5.4.190.0110.03615.05
5.4.180.0020.04614.95
5.4.170.0070.04015.07
5.4.160.0100.04015.00
5.4.150.0060.03815.11
5.4.140.0090.03513.79
5.4.130.0050.02813.63
5.4.120.0090.03513.73
5.4.110.0090.03713.84
5.4.100.0060.02513.76
5.4.90.0030.03813.76
5.4.80.0040.03713.77
5.4.70.0050.04013.73
5.4.60.0050.03913.79
5.4.50.0100.03213.76
5.4.40.0030.03913.80
5.4.30.0030.02113.76
5.4.20.0080.03613.81
5.4.10.0060.03913.80
5.4.00.0030.03713.51
5.3.290.0060.03812.88
5.3.280.0070.03512.87
5.3.270.0030.04012.87
5.3.260.0030.03612.79
5.3.250.0030.04112.89
5.3.240.0080.04012.82
5.3.230.0060.02312.83
5.3.220.0070.02812.79
5.3.210.0060.03712.78
5.3.200.0050.04112.77
5.3.190.0030.03812.80
5.3.180.0070.03712.88
5.3.170.0050.03712.81
5.3.160.0070.02712.82
5.3.150.0030.04112.82
5.3.140.0020.03812.79
5.3.130.0030.04312.80
5.3.120.0020.04412.81
5.3.110.0080.03312.79
5.3.100.0020.04112.61
5.3.90.0110.03512.53
5.3.80.0050.03812.61
5.3.70.0030.04212.49
5.3.60.0050.03912.47
5.3.50.0030.02312.55
5.3.40.0060.03812.51
5.3.30.0100.03712.47
5.3.20.0050.03912.37
5.3.10.0050.03912.39
5.3.00.0000.03012.40
5.2.170.0030.06711.30
5.2.160.0100.05711.30
5.2.150.0070.06011.30
5.2.140.0030.06311.30
5.2.130.0030.03311.30
5.2.120.0070.06011.30
5.2.110.0070.05711.30
5.2.100.0070.06311.30
5.2.90.0070.05311.30
5.2.80.0030.06011.30
5.2.70.0030.06311.30
5.2.60.0070.05711.30
5.2.50.0070.05711.30
5.2.40.0070.05711.30
5.2.30.0030.06011.30
5.2.20.0030.05311.30
5.2.10.0070.05711.30
5.2.00.0000.05311.30
5.1.60.0100.05011.30
5.1.50.0030.05311.30
5.1.40.0030.05011.30
5.1.30.0030.05711.30
5.1.20.0030.06011.30
5.1.10.0000.04311.30
5.1.00.0030.05711.30
5.0.50.0000.04711.30
5.0.40.0030.02711.30
5.0.30.0070.05711.30
5.0.20.0030.04311.30
5.0.10.0030.04011.30
5.0.00.0000.05311.30
4.4.90.0030.03311.30
4.4.80.0000.03711.30
4.4.70.0070.03011.30
4.4.60.0030.03311.30
4.4.50.0030.03311.30
4.4.40.0000.05311.30
4.4.30.0030.03711.30
4.4.20.0070.03311.30
4.4.10.0000.03711.30
4.4.00.0000.05311.30
4.3.110.0030.03711.30
4.3.100.0030.02311.30
4.3.90.0070.03011.30
4.3.80.0030.06011.30
4.3.70.0000.03011.30
4.3.60.0000.03711.30
4.3.50.0030.03311.30
4.3.40.0030.03011.30
4.3.30.0000.04011.30
4.3.20.0030.03011.30
4.3.10.0000.02711.30
4.3.00.0070.03011.30

preferences:
61.88 ms | 403 KiB | 5 Q